qwen-code/packages/cli
ChiGao c62b34433d
feat(cli): VP mode — inline thought expand on click + auto-hiding scrollbar (#6079)
* feat(cli): VP mode — inline thought expand on click + auto-hiding scrollbar

Two VP-mode (ui.useTerminalBuffer) UX improvements:

1. Thinking: clicking a thought now expands it inline, in place, instead of
   opening a full-screen modal. The expanded thought becomes part of the
   conversation and scrolls with it, matching the lighter inline pattern.
   A thought spans the `gemini_thought` head plus its trailing
   `gemini_thought_content` continuations, so expansion is keyed by the head
   id (buildThoughtHeadIdMap) and one click expands/collapses the whole group.
   Alt+T still toggles all thoughts at once.

   The full-screen ThinkingViewer modal (and its context) is removed: it only
   ever opened in VP, where an inline-expanded thought is already scrollable
   via the viewport, so it was redundant. Drops ThinkingViewer.tsx,
   ThinkingViewerContext.tsx, and the now-dead thinkingFullText plumbing.

2. Scrollbar: the VP scrollbar now auto-hides — it renders as blank cells while
   idle (keeping width 1 so the viewport never reflows) and pops in only while
   scrolling, then fades out. Adds `ui.showScrollbar` (default true) to hide it
   entirely.

Generated with AI

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* feat(cli): advertise click in the collapsed thought hint (VP only)

The collapsed thinking line only hinted "option+t to expand", so the new
click-to-expand affordance was undiscoverable. Show "(click or option+t to
expand)" when the click handler is actually active — i.e. VP mode
(ui.useTerminalBuffer) — and keep the plain "(option+t to expand)" in non-VP,
where clicking does nothing (native scrollback is preserved).

Generated with AI

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

---------

Co-authored-by: 秦奇 <gary.gq@alibaba-inc.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-07-09 12:27:29 +00:00
..
src feat(cli): VP mode — inline thought expand on click + auto-hiding scrollbar (#6079) 2026-07-09 12:27:29 +00:00
index.ts fix(cli): add bootstrap fast paths (#6188) 2026-07-02 22:28:11 +00:00
package.json chore(release): v0.19.8 (#6549) 2026-07-08 15:51:03 +00:00
test-setup.ts perf(cli): code-split lowlight to cut startup V8 parse cost (#4070) 2026-05-15 17:26:18 +08:00
tsconfig.json feat(channels): add WeCom intelligent robot channel (#6436) 2026-07-07 15:24:19 +00:00
vitest.config.ts feat(serve): Bound replay snapshot history (#6482) 2026-07-08 06:53:58 +00:00