codetether-agent 4.7.0-a-002.3

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Dispatcher for text stream events.

use crate::session::SessionEvent;
use crate::tui::app::state::App;

pub(super) fn handle_event(app: &mut App, evt: SessionEvent) -> Option<SessionEvent> {
    match evt {
        SessionEvent::TextChunk(chunk) => super::text::chunk(app, chunk),
        SessionEvent::TextComplete(done) => super::text::complete(app, done),
        SessionEvent::ThinkingComplete(done) => super::text::thinking_complete(app, done),
        other => return Some(other),
    }
    None
}