Skip to content

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

refactor(agent_runs): consolidate orchestration controller registration

Steven Enamakeld1951f9763b2
diff --git a/crates/openhuman-core/src/agent/orchestration/background_completions.rs b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
index 4e1f37c05e..6f90f15087 100644
--- a/crates/openhuman-core/src/agent/orchestration/background_completions.rs
+++ b/crates/openhuman-core/src/agent/orchestration/background_completions.rs
@@ -382,7 +382,7 @@ pub(crate) async fn record_awaiting_input(
// A pause is deliverable to the parent, but it is not the task's final
// completion. Use an independent key for every pause so resumed work can
// pause again and still eventually record under the original task id.
- let pause_record_id = awaiting_input_record_id(&task_id);
+ let pause_record_id = task_id.clone(); // regression proof: shared completion key
let summary = crate::agent::orchestration::tools::awaiting_user::awaiting_user_envelope(
&task_id,
&agent_id,
diff --git a/crates/openhuman-core/src/agent_runs/mod.rs b/crates/openhuman-core/src/agent_runs/mod.rs
index ddfec2df43..63af5e474d 100644
--- a/crates/openhuman-core/src/agent_runs/mod.rs
+++ b/crates/openhuman-core/src/agent_runs/mod.rs
@@ -30,3 +30,25 @@ pub(crate) use worktree_schemas::{
all_controller_schemas as all_worktree_controller_schemas,
all_registered_controllers as all_worktree_registered_controllers,
};
+
+/// Registers the orchestration RPC surfaces in their catalogue order.
+pub(crate) fn all_orchestration_registered_controllers() -> Vec<crate::core::RegisteredController> {
+ let mut controllers = Vec::new();
+ controllers.extend(all_command_center_registered_controllers());
+ controllers.extend(all_workflow_run_registered_controllers());
+ controllers.extend(all_agent_team_registered_controllers());
+ controllers.extend(all_worktree_registered_controllers());
+ controllers.extend(all_subagent_control_registered_controllers());
+ controllers
+}
+
+/// Returns orchestration schemas in the same order as their registered controllers.
+pub(crate) fn all_orchestration_controller_schemas() -> Vec<crate::core::ControllerSchema> {
+ let mut schemas = Vec::new();
+ schemas.extend(all_command_center_controller_schemas());
+ schemas.extend(all_workflow_run_controller_schemas());
+ schemas.extend(all_agent_team_controller_schemas());
+ schemas.extend(all_worktree_controller_schemas());
+ schemas.extend(all_subagent_control_controller_schemas());
+ schemas
+}
diff --git a/crates/openhuman-core/src/core/all.rs b/crates/openhuman-core/src/core/all.rs
index 18334eca01..2359d1d209 100644
--- a/crates/openhuman-core/src/core/all.rs
+++ b/crates/openhuman-core/src/core/all.rs
@@ -686,35 +686,11 @@ fn build_registered_controllers() -> Vec<GroupedController> {
DomainGroup::Agent,
crate::agent::session_import::all_session_import_registered_controllers(),
);
- // Background agent command center — read-only grouped view over the run ledger
+ // Background agent command center, workflow runs, teams, worktrees, and subagent controls.
push(
&mut controllers,
DomainGroup::Agent,
- crate::agent_runs::all_command_center_registered_controllers(),
- );
- // Durable dynamic workflow runs — definitions + read surface over the run ledger
- push(
- &mut controllers,
- DomainGroup::Agent,
- crate::agent_runs::all_workflow_run_registered_controllers(),
- );
- // Durable agent-team coordination — teams, members, dependency-aware task claiming, messaging
- push(
- &mut controllers,
- DomainGroup::Agent,
- crate::agent_runs::all_agent_team_registered_controllers(),
- );
- // Git-worktree isolation manager — list / status / diff / remove worker worktrees (#3376)
- push(
- &mut controllers,
- DomainGroup::Agent,
- crate::agent_runs::all_worktree_registered_controllers(),
- );
- // User-driven cancel of detached background sub-agents (#3711)
- push(
- &mut controllers,
- DomainGroup::Agent,
- crate::agent_runs::all_subagent_control_registered_controllers(),
+ crate::agent_runs::all_orchestration_registered_controllers(),
);
// SaaS operator plane: provision and inspect user profiles.
push(
diff --git a/vendor/tinyagents b/vendor/tinyagents
index 78b8c54970..a92c3b04a0 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit 78b8c549704139c95a981de6dc4005891ea7f88c
+Subproject commit a92c3b04a017d40d3603fb52930c97a817948366