Skip to content

feat: enhance TUI with chat interface, LLM client, and command palette#2

Merged
rjoydip merged 7 commits intomainfrom
refactor/tui-improved
Mar 30, 2026
Merged

feat: enhance TUI with chat interface, LLM client, and command palette#2
rjoydip merged 7 commits intomainfrom
refactor/tui-improved

Conversation

@rjoydip
Copy link
Copy Markdown
Owner

@rjoydip rjoydip commented Mar 30, 2026

Summary

Major improvements to the Agent TUI application with new UI components and LLM integration.

Changes

Core Infrastructure

  • Added typed error classes (AgentError, RendererError, ThemeError, ConfigError, ContainerError)
  • Implemented retry logic with exponential backoff for renderer initialization
  • Added CLI argument parsing (--theme, --mode, --banner, --help, --version)
  • Added persistent config support (saved to ~/.agent-tui/config.json)

UI/UX Features

  • Created MessageList component for chat history display
  • Created TypingIndicator component with animated thinking display
  • Created CommandPalette with Ctrl+K shortcut and fuzzy search
  • Created StatusBar with version, directory, connection status, theme, model, and mode
  • Added keyboard shortcuts: Tab (Plan/Build), Ctrl+K (commands), Ctrl+P (quit)

Commands

  • /theme <name> - Switch theme (default, nord, dracula, nightowl)
  • /models <name> - Switch LLM model
  • /exit - Quit application
  • /help - Show available commands

API Integration

  • Added LLM client with streaming support (src/llm-client.ts)
  • Added connection manager with auto-reconnect and health checks
  • Added state management with pub/sub pattern

Testing

  • Unit tests for AgentTheme, AgentConfig, utils, and figures

Documentation

  • Updated README with features, commands, keyboard shortcuts, environment variables
  • Updated ARCHITECTURE.md with component relationships and data flow

Breaking Changes

  • None

rjoydip added 7 commits March 21, 2026 13:01
- Validate light/dark variants and seed structure in validateTheme
- Fall back to light mode if requested mode is missing in getTheme
- Refactor loadTheme to support custom theme objects and allowlist
- Update dependencies and postinstall script
- Add AGENTS.md development guide
- Add ARCHITECTURE.md and CODE_STYLE.md documentation
- Add opencode configuration and plugins
@rjoydip rjoydip self-assigned this Mar 30, 2026
@rjoydip rjoydip merged commit a6253a9 into main Mar 30, 2026
3 checks passed
@rjoydip rjoydip deleted the refactor/tui-improved branch March 30, 2026 04:18
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