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
Revert "test(tinyagents): cover unresolvable ask hook decisions"
Steven Enamakelfc17539c652f
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_memory_and_hooks_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_memory_and_hooks_tests.rsindex 051830e02a..6bc9d4f787 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_memory_and_hooks_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_memory_and_hooks_tests.rs@@ -61,15 +61,6 @@ async fn embedder_tool_hooks_veto_denies_the_call_and_skips_post_use() {error.to_string().contains("vetoed"),"veto must surface as a tool error: {error}");- // A refusal answers the model with a failed tool result; it does not end- // the run.- assert!(- matches!(- error,- tinyagents_harness::error::TinyAgentsError::ToolFailed(_)- ),- "{error:?}"- );// The call was vetoed — no post-use event, and no cache entry leaks.assert_eq!(pre.lock().unwrap().len(), 1, "pre-use hook still observed");assert!(@@ -190,29 +181,3 @@ async fn embedder_tool_hooks_nested_call_refuses_ask_and_rewrite() {assert!(error.to_string().contains("refused nested call"), "{error}");}}--#[tokio::test]-async fn embedder_tool_hooks_unresolvable_ask_answers_the_model() {- use crate::agent::hooks::ToolHookDecision;- let mw = EmbedderToolHooksMiddleware::new(vec![std::sync::Arc::new(FixedDecisionHook(- ToolHookDecision::Ask("confirm".into()),- ))]);- let mut call = TaToolCall {- id: "call-3".into(),- name: "write".into(),- arguments: json!({}),- invalid: None,- };- let error = mw- .before_tool(&mut ctx(), &(), &mut call)- .await- .unwrap_err();- assert!(- matches!(- &error,- tinyagents_harness::error::TinyAgentsError::ToolFailed(message)- if message.contains("requires approval")- ),- "{error:?}"- );-}