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
test(web_chat): cover provider_config truncation at and over the limit
Steven Enamakel80dc27e71caf
diff --git a/crates/openhuman-core/src/web_chat/web_tests_error_copy_fixture_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_error_copy_fixture_tests.rsindex 9c4684e335..204b207f75 100644--- a/crates/openhuman-core/src/web_chat/web_tests_error_copy_fixture_tests.rs+++ b/crates/openhuman-core/src/web_chat/web_tests_error_copy_fixture_tests.rs@@ -301,9 +301,13 @@ fn loop_guard_halt_summaries_are_byte_identical() {user_actionable_escalation("gmail", "insufficient scope"),None);- let long = "x".repeat(700);- let summary = stop::halt_summary::budget(&OpenHumanCopyProvider, "t", &long).summary;- assert!(summary.ends_with(&format!("{}\n\u{2026} [truncated]", "x".repeat(600))));+ let at_limit = "é".repeat(600);+ let exact = stop::halt_summary::provider_config(&OpenHumanCopyProvider, "t", &at_limit).summary;+ assert!(exact.ends_with(&format!("Details:\n{at_limit}")));+ let over_limit = "🦀".repeat(601);+ let truncated =+ stop::halt_summary::provider_config(&OpenHumanCopyProvider, "t", &over_limit).summary;+ assert!(truncated.ends_with(&format!("{}\n\u{2026} [truncated]", "🦀".repeat(600))));}// ── i18n key + params (follow-up of the copy table) ─────────────────────────