The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(test): add missing request_id field to ApprovalChatContext in tests
Steven Enamakel422b609ec3f2
diff --git a/crates/openhuman-core/src/integrations/composio/tools_metadata_and_sandbox_tests.rs b/crates/openhuman-core/src/integrations/composio/tools_metadata_and_sandbox_tests.rsindex 13f88fa15d..8f81a9514e 100644--- a/crates/openhuman-core/src/integrations/composio/tools_metadata_and_sandbox_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/tools_metadata_and_sandbox_tests.rs@@ -186,6 +186,7 @@ async fn connect_tool_validates_before_gating_in_chat_context() {let ctx = ApprovalChatContext {thread_id: "t-test".into(),client_id: "c-test".into(),+ request_id: None,};let result = APPROVAL_CHAT_CONTEXT.scope(diff --git a/crates/openhuman-core/src/security/approval/gate_tests.rs b/crates/openhuman-core/src/security/approval/gate_tests.rsindex a742d3a5d8..b2488cb357 100644--- a/crates/openhuman-core/src/security/approval/gate_tests.rs+++ b/crates/openhuman-core/src/security/approval/gate_tests.rs@@ -134,6 +134,7 @@ fn chat_ctx() -> ApprovalChatContext {ApprovalChatContext {thread_id: "t-test".into(),client_id: "c-test".into(),+ request_id: None,}}diff --git a/crates/openhuman-core/src/security/approval/gate_ttl_and_triage_tests.rs b/crates/openhuman-core/src/security/approval/gate_ttl_and_triage_tests.rsindex 4a84e95890..51dc970c64 100644--- a/crates/openhuman-core/src/security/approval/gate_ttl_and_triage_tests.rs+++ b/crates/openhuman-core/src/security/approval/gate_ttl_and_triage_tests.rs@@ -14,6 +14,7 @@ async fn pending_for_thread_tracks_request_under_chat_context_and_clears() {let ctx = ApprovalChatContext {thread_id: "thread-42".into(),client_id: "client-1".into(),+ request_id: None,};let origin = AgentTurnOrigin::WebChat {thread_id: "thread-42".into(),@@ -192,6 +193,7 @@ async fn intercept_audited_bounded_abandons_park_and_leaves_row_pending() {let ctx = ApprovalChatContext {thread_id: "thread-bound".into(),client_id: "client-1".into(),+ request_id: None,};let origin = AgentTurnOrigin::WebChat {thread_id: "thread-bound".into(),@@ -649,6 +651,7 @@ async fn a_parked_approval_is_recoverable_from_its_thread_for_replay() {let ctx = ApprovalChatContext {thread_id: "thread-replay".into(),client_id: "client-that-went-away".into(),+ request_id: None,};let origin = AgentTurnOrigin::WebChat {thread_id: "thread-replay".into(),diff --git a/crates/openhuman-core/src/security/egress/emit_tests.rs b/crates/openhuman-core/src/security/egress/emit_tests.rsindex 4f01db6517..72005040c2 100644--- a/crates/openhuman-core/src/security/egress/emit_tests.rs+++ b/crates/openhuman-core/src/security/egress/emit_tests.rs@@ -88,6 +88,7 @@ async fn attaches_ambient_chat_context() {ApprovalChatContext {thread_id: "thread-xyz".to_string(),client_id: "client-abc".to_string(),+ request_id: None,},async {emit_external_transfer(EgressDescriptor::composio(marker));diff --git a/crates/openhuman-core/src/tools/impl/system/install_tool_tests.rs b/crates/openhuman-core/src/tools/impl/system/install_tool_tests.rsindex 3be0a63825..ed2255bc84 100644--- a/crates/openhuman-core/src/tools/impl/system/install_tool_tests.rs+++ b/crates/openhuman-core/src/tools/impl/system/install_tool_tests.rs@@ -17,6 +17,7 @@ fn chat_ctx() -> ApprovalChatContext {ApprovalChatContext {thread_id: "t-test".into(),client_id: "c-test".into(),+ request_id: None,}}diff --git a/crates/openhuman-core/src/web3/wallet/execution_tests.rs b/crates/openhuman-core/src/web3/wallet/execution_tests.rsindex 53f419e5d3..8ec9108eb9 100644--- a/crates/openhuman-core/src/web3/wallet/execution_tests.rs+++ b/crates/openhuman-core/src/web3/wallet/execution_tests.rs@@ -450,6 +450,7 @@ fn chat_ctx_from(owner: &QuoteOwner) -> crate::security::approval::ApprovalChatCcrate::security::approval::ApprovalChatContext {thread_id: owner.thread_id.clone(),client_id: owner.client_id.clone(),+ request_id: None,}}