qwen-code/packages/cli
Dragon 011303239e
fix(cli): improve slash command history feedback (#8365)
* fix(cli): improve slash command history feedback

* fix(cli): centralize auxiliary model guard

* test(cli): cover model picker left key

* fix(cli): persist slash command invocation hiding across resume

* fix: keep model picker feedback consistent

* docs(cli): align design doc with /stats root-level hiding

* fix(cli): preserve model picker history safely

* fix: preserve hidden command feedback on resume

* fix(desktop): match slash results to invocations

* fix: keep slash command feedback paired with invocations

- Record message-type command results through the recording wrapper so
  rejections and errors land in the result record and replay on resume
- Move the NO_COLOR /theme rejection into the command action so the result
  record is written after the invocation, and keep that invocation visible
  because the command prints feedback instead of opening the dialog
- Skip the /auth result record when the dialog auto-opened without an
  /auth invocation to pair with
- Guard the model picker against re-entering a selection while a switch
  is already in flight
- Walk only uuid -> parentUuid links when matching desktop slash results
  to invocations instead of retaining every parsed transcript record

* fix(desktop): bound slash result lookup to user turn

* test(cli): cover hidden command result replay on resume

* fix(cli): guard dialog result recording

* fix(cli,desktop): tighten slash-command feedback recording

- Pin the revealed invocation as the first history item in the
  argument-validation reveal test, matching the processor's ordering.
- Derive the /model picker-flag pattern from a single shared flag list.
- Pair each transcript invocation with at most one result during desktop
  reconstruction, so a later same-name orphan result (e.g. an auto-fired
  recap) cannot re-emit an already-paired invocation's user row.
- Retarget the textElements guard at the synthesized slash user row.

* fix(cli): guard partially persisted model switches

* test(cli): cover isPickerOnlyModelInvocation regex boundaries directly

---------

Co-authored-by: Shaojin Wen <shaojin.wensj@alibaba-inc.com>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev@service.alibaba.com>
Co-authored-by: Qwen Autofix <autofix@qwen-code.dev>
Co-authored-by: qwen-code-dev-bot <qwen-code-dev-bot@users.noreply.github.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-08-12 17:15:01 +00:00
..
src fix(cli): improve slash command history feedback (#8365) 2026-08-12 17:15:01 +00:00
.gitignore feat(core): add opt-in built-in web_search backed by the DashScope Responses API (#7215) 2026-07-21 10:59:36 +00:00
index.ts fix(cli): add bootstrap fast paths (#6188) 2026-07-02 22:28:11 +00:00
package.json chore(release): v0.21.10 (#8942) 2026-08-11 14:30:20 +00:00
test-setup.ts feat(serve): persist dynamic workspace registrations (#6716) 2026-07-11 16:49:40 +00:00
tsconfig.json feat(serve): resolve and report the daemon memory budget (#8245) 2026-08-02 04:19:31 +00:00
vitest.config.ts fix(serve): Allow approved external built-in text writes (#8852) 2026-08-10 12:19:58 +00:00