add slash-command typeahead to the Claude composer

Typing a slash — anywhere in the message, not just at the start — opens
an anchored typeahead listing matching commands and skills from
ClaudeConfig's slash list. Arrow keys move the selection, Enter/Tab
completes (inserting "/command "), Escape dismisses; with the popup
closed, Enter still submits and Tab still traverses. The recognition,
filtering, and completion are pure functions (slash_commands.dart) so
they're cheaply unit-tested; the overlay is a no-Material
CompositedTransformFollower keyed off the field's focus node.

T-152.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-23 12:43:49 +02:00
co-authored by Claude Opus 4.7
parent 5fad8dc430
commit f6a5d72ccd
7 changed files with 427 additions and 63 deletions
+8
View File
@@ -18,6 +18,14 @@ heading, and (b) bumping `pubspec.yaml` `version:` in the same commit.
### Added
- Slash-command typeahead in the Claude composer (T-152) — typing `/`
(anywhere in the message, not just at the start) pops a list of
matching commands and skills sourced from the Claude environment;
arrow keys move, Enter/Tab completes, Escape dismisses.
- Claude environment service (T-151) — clide reads skills, commands,
settings, and permissions from `~/.claude` and the repo's `.claude`
(layered), and caches the slash-command list per claude version. Backs
the typeahead and command-aware send.
- Per-session status in the bottom status bar (T-145, T-150) — the
active Claude pane shows its model · permission mode (accept-edits /
plan / …) · context-token count in a status-bar slot, swapping to the