Skip to content

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

fix(tokenjuice): derive legacy retrieve tool name from recovery list

Steven Enamakeld587224cae35
diff --git a/crates/openhuman-core/src/inference/tokenjuice/mod.rs b/crates/openhuman-core/src/inference/tokenjuice/mod.rs
index 081943ee13..b5aa4ea5e7 100644
--- a/crates/openhuman-core/src/inference/tokenjuice/mod.rs
+++ b/crates/openhuman-core/src/inference/tokenjuice/mod.rs
@@ -63,7 +63,7 @@ pub use tinyjuice_host::recovery::{
is_recovery_tool, summary_failed_notice, CompactedToolOutput, RECOVERY_TOOL_NAMES,
RECOVERY_TOOL_VISIBLE,
};
-pub const LEGACY_RETRIEVE_TOOL_NAME: &str = "retrieve_tool_output";
+pub const LEGACY_RETRIEVE_TOOL_NAME: &str = RECOVERY_TOOL_NAMES[3];
/// Whether the `[components] juice` switch is on. Off means turns truncate
/// tool output only: no compaction, no summary, no `juice_*` / recovery tools,