-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
2 / 22 of 2 issues completed
Copy link
Labels
bugSomething isn't workingSomething isn't workingepicMilestone-level tracking issueMilestone-level tracking issue
Description
Problem
The TUI interface sometimes freezes during operations, preventing input in the text field. Root cause analysis identified two categories of issues:
-
Event loop starvation -- the
tui_loopprocesses one event per iteration then draws a full frame. During fast streaming or parallel tool execution, agent events flood the queue while keyboard events are starved. -
Expensive synchronous rendering -- tree-sitter syntax highlighting and markdown parsing run on every frame for all visible messages, adding latency proportional to content size.
Sub-issues
- Batch agent events and prioritize input in TUI event loop #500 Batch agent events and prioritize input in TUI event loop (P0)
- Cache syntax highlighting and markdown rendering per message #501 Cache syntax highlighting and markdown rendering per message (P1)
Analysis
Full analysis: .local/plan/tui-freeze-analysis.md
Acceptance Criteria
- Keyboard input remains responsive during fast LLM streaming
- Keyboard input remains responsive during parallel tool execution
- Frame time stays under 16ms for typical chat content
Reactions are currently unavailable
Sub-issues
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingepicMilestone-level tracking issueMilestone-level tracking issue