Skip to content

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

refactor(web_chat): expose min interim narration chars

Steven Enamakelf266477c2420
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rs
index 3557fa5227..a8f297670c 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs
@@ -17,7 +17,7 @@ use crate::core::runtime::DispatchCtx;
mod narration;
#[cfg(test)]
use narration::interim_narration_text;
-use narration::{flush_interim_narration, publish_seq_stamped};
+use narration::{flush_interim_narration, publish_seq_stamped, MIN_INTERIM_NARRATION_CHARS};
#[path = "progress_bridge_subagent_events.rs"]
mod subagent_events;
#[path = "progress_bridge_text_events.rs"]
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge_narration.rs b/crates/openhuman-core/src/web_chat/progress_bridge_narration.rs
index 8dcc246c7a..17b4648471 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge_narration.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge_narration.rs
@@ -15,7 +15,7 @@ use super::super::event_bus::publish_web_channel_event_in;
/// resets its live preview for the next round. A short "Let me check." that
/// was never flushed stayed in the preview and the next round's text was
/// appended straight onto it ("Let me check.Here's the answer").
-const MIN_INTERIM_NARRATION_CHARS: usize = 1;
+pub(super) const MIN_INTERIM_NARRATION_CHARS: usize = 1;
/// Flush the parent agent's accumulated leading narration (streamed before a
/// tool call in the current round) as an interim `chat_interim` event, so it