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(agent): handle empty context breakdown gracefully
Steven Enamakel27f441f502ae
diff --git a/crates/openhuman-core/src/agent/context_breakdown.rs b/crates/openhuman-core/src/agent/context_breakdown.rsindex 5fec781b23..8069c9ad08 100644--- a/crates/openhuman-core/src/agent/context_breakdown.rs+++ b/crates/openhuman-core/src/agent/context_breakdown.rs@@ -111,7 +111,6 @@ async fn cached_report(agent_id: &str, config: &Config) -> Result<PromptSizeRepo);let options = DumpPromptOptions {agent_id: agent_id.to_string(),- toolkit: None,workspace_dir_override: Some(config.workspace_dir.clone()),config_path_override: Some(config.config_path.clone()),model_override: None,diff --git a/crates/openhuman-core/src/agent/context_breakdown_tests.rs b/crates/openhuman-core/src/agent/context_breakdown_tests.rsindex 600b766d1b..fcb9ebdf92 100644--- a/crates/openhuman-core/src/agent/context_breakdown_tests.rs+++ b/crates/openhuman-core/src/agent/context_breakdown_tests.rs@@ -5,7 +5,6 @@ use crate::agent::debug::DumpedPrompt;fn sample_dump() -> DumpedPrompt {DumpedPrompt {agent_id: "orchestrator".into(),- toolkit: None,mode: "session",model: "gpt-4o-mini".into(),workspace_dir: std::path::PathBuf::from("/tmp"),diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rsindex 7be34c7dd9..d97e90726a 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_failed_run_tests.rs@@ -71,7 +71,6 @@ async fn failed_subagent_run_keeps_its_unanswered_round_out_of_history() {false,stem,"mock-channel",- None,AgentTokenjuiceCompression::Off,None,)diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rsindex 3a91bb535a..ae3acb6b2c 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_policy_tests.rs@@ -142,7 +142,6 @@ async fn run_with_spawn_tool_in_parent_surface(allowed: HashSet<String>) -> (boofalse,"root-session__spawn_refusal","mock-channel",- None,AgentTokenjuiceCompression::Off,None,)diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rsindex bfb5216f74..95b9cd72f9 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph_tests.rs@@ -132,7 +132,6 @@ async fn explicit_worker_thread_replaces_parent_for_model_run_and_transcript() {false,"root__worker-thread","test",- None,AgentTokenjuiceCompression::Off,None,)@@ -184,7 +183,6 @@ async fn subagent_runs_through_the_graph_engine_with_real_tools() {false,"root-session__real_tools","mock-channel",- None,AgentTokenjuiceCompression::Off,// No host config in tests: the graph takes byte-cap-only// context defaults instead of reading the developer machine's@@ -271,7 +269,6 @@ async fn child_text_and_thinking_deltas_are_scoped_to_the_subagent() {false,"root-session__scoped_deltas","mock-channel",- None,AgentTokenjuiceCompression::Off,// No host config in tests: the graph takes byte-cap-only// context defaults instead of reading the developer machine's@@ -408,7 +405,6 @@ async fn ask_user_clarification_pauses_and_surfaces_the_question() {false,"root-session__clarification","mock-channel",- None,AgentTokenjuiceCompression::Off,// No host config in tests: the graph takes byte-cap-only// context defaults instead of reading the developer machine's@@ -501,7 +497,6 @@ async fn cap_hit_summarizes_a_resumable_checkpoint() {false,"root-session__cap_hit","mock-channel",- None,AgentTokenjuiceCompression::Off,// No host config in tests: the graph takes byte-cap-only// context defaults instead of reading the developer machine's