Skip to content

feat(desktop): /reasoning command + /clear and /models aliases - #332

Merged
Kyzcreig merged 1 commit into
mainfrom
feat/desktop-slash-ux-pass
Jul 14, 2026
Merged

Kyzcreig merged 1 commit into
mainfrom
feat/desktop-slash-ux-pass

Conversation

@Kyzcreig

Copy link
Copy Markdown
Collaborator

Desktop slash UX pass (follow-up to #330; fixes the sweep-flagged UX bugs from the 2026-07-02 desktop slash audit).

/reasoning (alias /effort) — new desktop action

Was unavailable('advanced') — typing it printed 'not shown in the desktop palette'. Now:

  • bare /reasoning → shows the session's current effort + display state via the gateway's session-scoped config.get reasoning
  • /reasoning <none|minimal|low|medium|high|xhigh> → sets effort via config.set reasoning (the same session-scoped RPC the model-edit submenu uses — no global config clobber), and updates the composer effort store so the model pill reflects it immediately
  • /reasoning show|hide|full|clamp → display toggles (handled by the existing config.set branch)
  • localized en/ja/zh/zh-hant; popover expands to arg options (args: true)

/clear → alias of /new

Was unavailable('terminal'). On CLI/TUI it clears the screen + starts a new session; the desktop equivalent is a fresh chat, so it aliases /new (matching /reset).

/models → alias of /model

Common plural typo, sweep-flagged as unknown-command; opens the model picker.

Testing

  • Registry tests for all three surfaces (+ alias resolution, popover visibility, args expansion); stale /clear-unavailable expectations updated (moved to /verbose as the terminal-only exemplar)
  • Full desktop suite: 159 files / 1276 tests green (npm run test:ui)
  • tsc --noEmit clean

… slash palette

Desktop slash UX pass (follow-up to #330):

- /reasoning (alias /effort): new first-class desktop action — bare shows the
  session's effort + display state (config.get reasoning), an arg sets it via
  the session-scoped config.set the model-edit submenu already uses; effort
  levels also update the composer store so the model pill reflects the change
  immediately. Localized (en/ja/zh/zh-hant). Was unavailable('advanced') —
  typing it dead-ended with 'not shown in the desktop palette'.
- /clear: now an alias of /new instead of unavailable('terminal') — in every
  other surface it clears + starts fresh; the desktop equivalent is a new
  chat. Previously it dumped 'only available in the terminal interface'.
- /models: alias of /model (common typo; sweep-flagged unknown-command).

Tests: registry coverage for the three new surfaces + stale /clear
expectations updated; full desktop suite 159 files / 1276 tests green; tsc
clean.
@Kyzcreig
Kyzcreig merged commit 27282bf into main Jul 14, 2026
23 checks passed
@Kyzcreig
Kyzcreig deleted the feat/desktop-slash-ux-pass branch July 14, 2026 15:21
Kyzcreig added a commit that referenced this pull request Jul 14, 2026
… slash palette (#332)

Desktop slash UX pass (follow-up to #330):

- /reasoning (alias /effort): new first-class desktop action — bare shows the
  session's effort + display state (config.get reasoning), an arg sets it via
  the session-scoped config.set the model-edit submenu already uses; effort
  levels also update the composer store so the model pill reflects the change
  immediately. Localized (en/ja/zh/zh-hant). Was unavailable('advanced') —
  typing it dead-ended with 'not shown in the desktop palette'.
- /clear: now an alias of /new instead of unavailable('terminal') — in every
  other surface it clears + starts fresh; the desktop equivalent is a new
  chat. Previously it dumped 'only available in the terminal interface'.
- /models: alias of /model (common typo; sweep-flagged unknown-command).

Tests: registry coverage for the three new surfaces + stale /clear
expectations updated; full desktop suite 159 files / 1276 tests green; tsc
clean.

Co-authored-by: Kyzcreig <9063726+Kyzcreig@users.noreply.github.com>
@Kyzcreig
Kyzcreig restored the feat/desktop-slash-ux-pass branch September 21, 2026 10:32
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