Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
11 · Command palette
Shortcut ⌘K · File src/app/CommandPalette.tsx (222 lines)
The keyboard path to everything. For a power user it replaces the sidebar entirely; for a beginner it is the fastest way to discover what exists.
What it is today
- A modal with a bare search field (
.st-input--bare) and grouped results. - Groups — Go to, Engine, Model, plus command entries.
- Always mounted and driven by
data-open, so it animates both ways. - Portal-free — it renders inside
.app, and the modal is opaque. - Fuzzy-ish matching, cursor movement with
↑/↓,Enterto run,Escto close, focus returned to the trigger on close.
Where it falls short
Matching is prefix-based on the label.Fixed.src/lib/fuzzy.tsadds subsequence matching with a score that rewards consecutive characters and word starts, returning the matched indices so hits can be explained. Verified:mtr→ Monitor,wsp→ Workspace,dl→ Models, each with the matched characters highlighted. The plan's own example was wrong —mtxcannot match Monitor, which has nox— and was replaced withmtr.Commands and destinations are mixed.Fixed.>scopes to commands,#to conversations,@to workspaces, and the empty state names all three. Verified:>unload→ Unload model,@→ the workspace.- No recent or frequent section. The first row is always
Chat, whether or not that is where anyone goes. Results do not show what they will do.Fixed. Entries carry adangerflag; restart, unload and re-run-setup render with a danger-toned icon and a distinct label weight, so an action that changes something does not read as navigation.No hint of the shortcut.Fixed. Akeysfield renders real<kbd>chips, starting with⌘ /on Keyboard shortcuts.- The accent colour is used for the selected row, which conflicts with the rule that accent marks the primary action — in a list, selection is not primary action.
- Empty state is a single line with no suggestion of what can be typed.
The plan
Substance
- Fuzzy matching with match highlighting — subsequence matching with the
matched characters emphasised, so
mtxfinds Monitor and shows why. - Scoped prefixes:
>for commands,#for conversations,@for workspaces. Three prefixes cover everything the palette can reach. - A Recents group at the top, from actual navigation history, collapsed once the user starts typing.
- Destructive commands are marked with the danger tone and their effect
stated (
Restart engine — reloads the model, about 20 s). - Show the shortcut on the right of every entry that has one, so the palette teaches the keyboard rather than replacing it.
Search conversations.Fixed. Sessions and workspaces are palette entries, reached with#and@.
Hierarchy
- Selection uses the neutral raised surface, not the accent. Accent stays for the primary action on a screen.
Motion
| Interaction | Spec |
|---|---|
| Open/close | st-enter / reverse, --st-t-local — built and interruptible |
| Filtering | Rows fade, --st-t-control; results do not animate position |
| Selection moving | Background only, --st-t-micro. ↑/↓ must not animate |
| Scoped prefix entered | Group headers collapse, --st-t-control |
Selection deliberately does not move smoothly: at keyboard repeat rates an animated highlight lags the key and feels broken.
Verification
- Shipped as
npm run flow palette. It asserts focus lands inside on open and stays inside after fourteenTabpresses, then checksmtr→ Monitor with the match highlighted,tune→ Engine tuning by alias,>unloadscoped, and@→ the workspace. - Three of the original items were also fixed beyond the plan: aliases
(
tune,api,statsfind entries whose labels do not contain them), which the plan had not anticipated but which the alias test immediately exposed. - Assert destructive entries render a danger marker.
- Assert the palette is fully operable by keyboard with no pointer.