Skip to content

tui: show all slash commands in / picker; add scroll indicators to @ picker (closes #356)#357

Merged
erain merged 1 commit into
mainfrom
fix/356-slash-picker-show-all
Jun 10, 2026
Merged

tui: show all slash commands in / picker; add scroll indicators to @ picker (closes #356)#357
erain merged 1 commit into
mainfrom
fix/356-slash-picker-show-all

Conversation

@erain

@erain erain commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Closes #356.

Typing / opened the command picker windowed to 8 rows (the @-file picker's constant) with no scroll indicator — alphabetically that showed clear…model and silently hid resume, session, tools, tree, usage, making the autocomplete look incomplete.

Changes

  • Slash picker: no scroll window. The command set is small and bounded (13), so a bare / now always lists every command.
  • @-file picker: ↑ N more / ↓ N more indicators. It keeps its 8-row window (workspaces are unbounded), but clipped matches are now discoverable.
  • popupRows() on both pickers, used by layout() — the popup height math is derived from the same code path as rendering, so they can't drift.

Tests

  • TestSlashPickerShowsEveryCommandOnBareSlash — pins every spec visible, no indicator ever.
  • TestAtPickerWindowIndicators — top/mid/bottom cursor positions show the right N more lines, and popupRows() matches; no indicators when matches fit.
  • gofmt clean, go vet clean, full go test ./... passes.

🤖 Generated with Claude Code

…picker (closes #356)

The slash-command popup reused the @-file picker's 8-row scroll window
with no indicator, so a bare `/` showed clear…model and silently hid
resume, session, tools, tree, and usage — it looked like the
autocomplete was missing commands.

- slash picker: no scroll window — the command set is small and
  bounded, so every match is always visible.
- @-file picker: keeps its 8-row window (workspaces are unbounded) but
  now renders `↑ N more` / `↓ N more` lines when the window clips.
- both pickers expose popupRows() and layout() uses it, so the popup
  height math can't drift from what render emits.

Co-Authored-By: Claude Fable 5 <[email protected]>
@github-actions

Copy link
Copy Markdown

glue-review

No concerns — LGTM.

Refactors the TUI pickers to ensure / commands are fully visible and @ file picks have proper scroll indicators, with matching layout logic.


🤖 Posted by glue-review.

@erain erain changed the title tui: show all slash commands in / picker; add scroll indicators to @ picker tui: show all slash commands in / picker; add scroll indicators to @ picker (closes #356) Jun 10, 2026
@erain erain merged commit 19aa790 into main Jun 10, 2026
5 checks passed
@erain erain deleted the fix/356-slash-picker-show-all branch June 10, 2026 14:57
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.

TUI: slash-command picker hides 5 of 13 commands below an unindicated scroll window

1 participant