Skip to content

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

refactor(tui): ignore channel_event in state classification

Steven Enamakel5f5dd54a763e
diff --git a/crates/openhuman-tui/src/state_events.rs b/crates/openhuman-tui/src/state_events.rs
index 2e526d51c1..9ea856c97f 100644
--- a/crates/openhuman-tui/src/state_events.rs
+++ b/crates/openhuman-tui/src/state_events.rs
@@ -70,6 +70,8 @@ const IGNORED: &[&str] = &[
"proactive_message",
"voice_speak",
"user_error",
+ // Canonical provider read/reaction events are not transcript rows in the TUI.
+ "channel_event",
];
/// Classify one event tag.
diff --git a/crates/openhuman-tui/src/state_events_tests.rs b/crates/openhuman-tui/src/state_events_tests.rs
index 212049d4d7..7ef47f14b3 100644
--- a/crates/openhuman-tui/src/state_events_tests.rs
+++ b/crates/openhuman-tui/src/state_events_tests.rs
@@ -57,5 +57,6 @@ fn dispositions_cover_the_three_cases() {
assert_eq!(disposition("chat_done"), Disposition::Reduced);
assert_eq!(disposition("subagent_spawned"), Disposition::Reduced);
assert_eq!(disposition("turn_cost"), Disposition::Ignored);
+ assert_eq!(disposition("channel_event"), Disposition::Ignored);
assert_eq!(disposition("from_the_future"), Disposition::Unknown);
}