mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
3fc0ad906e
Display streaming bash output in the TUI stream region as it arrives. Changes: - Add streaming bash output rendering to renderStream() - Style stdout with CodeBg, stderr with Error color - Add streamingMu mutex for thread-safe buffer access - Clear buffers on ToolResultEvent - Add ToolOutputEvent to event system (pkg/kit, internal/app) - Add ToolOutputHandler callback in agent - Implement streaming mode in bash tool with pipes - Add tests for accumulation and clearing The streaming output appears in real-time below the LLM streaming text while bash commands are executing, with proper synchronization to prevent race conditions between Update and Render methods.