Skip to content

feat(tui): slash-command palette with typeahead, list/tree rendering, CI fix, release workflow - #3

Merged
buchenberg merged 1 commit into
mainfrom
feature/commands
Jul 14, 2026
Merged

feat(tui): slash-command palette with typeahead, list/tree rendering, CI fix, release workflow#3
buchenberg merged 1 commit into
mainfrom
feature/commands

Conversation

@buchenberg

Copy link
Copy Markdown
Owner

Changes

Slash-command palette

  • Typing /\ in the TUI input now enters command mode with a styled typeahead palette
  • Available commands: /help, /clear, /compact, /quit\
  • Textinput built-in suggestions handle prefix matching (tab-to-accept, ctrl+n/ctrl+p to cycle)
  • Dynamic viewport height adjustment ensures the palette and input are both visible
  • /quit\ exits via \ ea.Quit, other commands dispatch through \�xecuteCommand\
  • \onCompact\ callback wired for future context compaction support

Lipgloss list/tree rendering for tool results

  • Tool results are now forwarded to the TUI (previously invisible)
  • \AgentMsg\ gains \ToolResult\ and \ToolResultName\ fields
  • \�gent.ToolInfo\ gains \Result\ field populated on second \OnTool\ callback
  • Auto-detection of bullet lists (* item, - item) → rendered with lipgloss list
  • Auto-detection of file tree patterns (\├──, \└──) → rendered with lipgloss tree
  • Plain tool results display as before (dim gray)

CI fix + release workflow

  • CI Go version updated from 1.22 → 1.25 to match \go.mod\
  • New
    elease.yml\ workflow: triggers on \�*\ tags, builds 5 platform binaries, creates GitHub Release with auto-generated notes

Tests

  • 66 total tests, all passing (6 new command mode tests, 16 new list/tree tests)
  • \go vet\ and \gofmt\ clean

- Add Command type and /help, /clear, /compact, /quit slash commands
- Enable textinput built-in suggestions for prefix-matched typeahead
- Render styled command palette above input when typing /
- Dynamic viewport height adjustment for palette visibility
- Wire onCompact callback from TUI for future /compact support
- Add executeCommand dispatcher with system messages for help/clear
- Integrate lipgloss list/tree rendering for tool results
- Detect bullet lists and file-tree patterns automatically
- Add agent.ToolInfo.Result field to forward tool output to TUI
- Add ToolResult/ToolResultName to AgentMsg for tool result display
- Fix CI Go version 1.22 -> 1.25 to match go.mod
- Add release workflow (triggered on v* tag push)
@buchenberg
buchenberg merged commit 2b200e8 into main Jul 14, 2026
5 of 8 checks passed
@buchenberg
buchenberg deleted the feature/commands branch July 14, 2026 00:01
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