Add status updates to show agent thinking/processing state

- Add StatusUpdate enum with Thinking, ToolStarted, ToolCompleted, StreamChunk, Status variants
- Add send_status method to Channel trait (default no-op)
- Implement send_status in TuiChannel to show status in UI
- Add send_status to ChannelManager for routing to specific channels
- Update handle_message to send "Processing..." status for Chat/CreateJob
- Update handle_chat to send "Generating response..." and show errors

Now when a user sends a message, they see feedback that the agent is working.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
This commit is contained in:
Illia Polosukhin
2026-02-03 00:12:48 -08:00
co-authored by Claude Opus 4.5
parent d1cb748914
commit 7f9f0cd21e
5 changed files with 104 additions and 12 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ mod manager;
mod slack;
mod telegram;
pub use channel::{Channel, IncomingMessage, MessageStream, OutgoingResponse};
pub use channel::{Channel, IncomingMessage, MessageStream, OutgoingResponse, StatusUpdate};
pub use cli::TuiChannel;
pub use http::HttpChannel;
pub use manager::ChannelManager;