Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(config): add error code to config save conflict

Steven Enamakel3bf2653ebfdd
diff --git a/crates/openhuman-core/src/config/ops/mod.rs b/crates/openhuman-core/src/config/ops/mod.rs
index 6642b5a34d..3d5415483f 100644
--- a/crates/openhuman-core/src/config/ops/mod.rs
+++ b/crates/openhuman-core/src/config/ops/mod.rs
@@ -51,6 +51,7 @@ pub(crate) fn config_save_conflict(
message: "Configuration changed on another instance; reload it and retry".into(),
data: Some(serde_json::json!({
"kind": "ConfigConflict",
+ "code": "CONFIG_CONFLICT",
"retryable": retryable,
})),
expected_user_state: true,