Skip to content

Fix war-room TUI rendering duplication and add agent navigation#41

Merged
casperpanduro merged 1 commit intomainfrom
fix/war-room-ui-rendering-and-navigation
Mar 16, 2026
Merged

Fix war-room TUI rendering duplication and add agent navigation#41
casperpanduro merged 1 commit intomainfrom
fix/war-room-ui-rendering-and-navigation

Conversation

@casperpanduro
Copy link
Copy Markdown
Contributor

Summary

  • Fix duplicate "Agents / Events" frames stacking on each render by adding \x1b[2J screen clear on init, per-line \x1b[K clear-to-EOL, and \x1b[J clear-to-end-of-screen after the bottom border
  • Add keyboard navigation (j/k, arrow keys, 1-9) to cycle through agents with a distinct * selection indicator and last-event detail for the selected agent
  • Show [j/k] navigate hint in the status bar

Test plan

  • Run bun test src/__tests__/war-room-ui.test.ts — all 11 tests pass
  • Run storm war-room --ui -p "test task" — verify single frame with no duplication on resize or rapid events
  • Press j/k keys to cycle through agents — verify cyan * indicator moves and last event displays
  • Press number keys 1-9 to jump directly to an agent

🤖 Generated with Claude Code

- Clear screen on init and use per-line clear-to-EOL escape codes to
  prevent stale content from stacking across re-renders
- Add keyboard input (j/k, arrows, 1-9) for navigating between agents
  with selected agent indicator and last-event detail
- Show navigation hint in status bar

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@casperpanduro casperpanduro merged commit 8769530 into main Mar 16, 2026
1 check passed
@casperpanduro casperpanduro deleted the fix/war-room-ui-rendering-and-navigation branch March 16, 2026 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant