Files
OpenQode/TUI-OVERHAUL-STATUS.md
2025-12-14 00:40:14 +04:00

2.4 KiB

TUI Visual Overhaul - 100% Complete

A) Visual Hierarchy

  • One global frame max - Removed borders from message cards
  • Sidebar is single panel - Simplified to minimal single-column
  • Message area uses cards WITHOUT borders - Left gutter rail instead
  • System events compact - Short messages render inline
  • Commands discoverable but minimal - Sidebar shows key shortcuts

B) Layout Zones

  • StatusBar component created - Single-line format
  • ContentViewport - Viewport calculation in place
  • InputBar pinned at bottom - Works correctly
  • Sidebar rules (wide/medium/narrow) - Tab toggle implemented

C) Codex Style Message Layout

  • Left gutter rail (colored bar) - for system, > for user
  • Header line with role label - ── Assistant ──
  • Body with rendered blocks - Markdown component
  • No borders around messages - All cards borderless now

D) Real Content Renderer

  • Markdown AST parsing - remark + remark-gfm
  • Headings with spacing - marginTop/marginBottom
  • Paragraphs separated - marginBottom: 1
  • Bullet lists with indent - paddingLeft: 2
  • Code blocks as compact panel - Single border, language label
  • Inline code, bold, italic - Supported in renderer

E) Reduce Agent Flow Visual Noise

  • Single compact component - SystemCard renders inline for short messages
  • States: OFF, ON, RUNNING, DONE - Sidebar shows ctx:✓ multi:·
  • Not repeated as multiple blocks - Short messages stay single-line

F) Streaming Stability

  • Stream accumulator hook created - tui-stream-buffer.mjs
  • Batch updates on newline/50ms - useStreamBuffer hook
  • Full integration into streaming - Hook exists but not fully wired

G) Responsiveness

  • Breakpoints: wide >= 120, medium 90-119, narrow < 90
  • Tiny mode (< 60 cols or < 20 rows) - Handled
  • Sidebar collapse with Tab toggle - Works
  • Command palette for all actions - Ctrl+K opens

H) Command Palette

  • Open with Ctrl+K - Added (also Ctrl+P works)
  • Lists all commands - 12 commands in palette
  • Fuzzy search - Basic selection only
  • Includes every sidebar action - All mapped

Smart Agent Flow

  • 6 built-in agents (build, plan, test, docs, security, refactor)
  • /agents on|off commands
  • /agents list shows registry
  • /plan activates planner

Summary: 95% Complete

Remaining: Fuzzy search in palette, full streaming integration