Skip to content

feat(transcript): add display modes and thinking shimmer - #1798

Merged
vastsa merged 3 commits into
mainfrom
feat/transcript-display-modes
Oct 21, 2026
Merged

vastsa merged 3 commits into
mainfrom
feat/transcript-display-modes

Conversation

@Tioit-Wang

@Tioit-Wang Tioit-Wang commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

概要

新增 transcriptDisplayMode 设置,提供三种助手过程显示模式:

  • 平铺显示 (flat):保留一个外层过程折叠头,不再渲染嵌套活动组;进行中按顺序显示工具、命令、Thinking 与进度文本,完成后只保留最终 assistant 文本。
  • 命令工具优先 (command-first):命令始终独立成行;其他连续活动组成活动组;中间普通 assistant 文本和命令都会打断组。
  • 全折叠显示 (fully-folded,默认):沿用 v0.20.0 的分组方式,Bash/run 留在活动组内;只有中间普通 assistant 文本会拆组。

同时调整 Thinking:

  • showThinking=true 时,平铺与命令优先的 Thinking 默认展开,可手动折叠;折叠后只显示 Thinking 指示器,不显示摘要。
  • 全折叠保持现有例外:较早 Thinking 折叠,活动末尾 Thinking 只在运行中自动展开。
  • showThinking=false 时,仅保留 reasoning 流式期间的整段 TextShimmer “Thinking” 指示器;1.2s 线性扫光、220ms 淡回,无 spinner/脉冲点/逐字动画,减少动态效果时静态。
  • 工具详情在所有模式下仍默认收起。

keepCommandsExpanded 标记为 deprecated,仅保留持久化兼容,不再在设置中暴露,也不再参与渲染。默认值保持 fully-folded。

验证

已在工作区执行:

  • pnpm --filter @pi-desktop/desktop typecheck
  • pnpm --filter @pi-desktop/desktop lint
  • pnpm --filter @pi-desktop/desktop build
  • 定向 node --test:turn-process、Thinking UI、transcript style、显示模式解析/设置/渲染契约、settings roundtrip、session collaboration IPC、active turn surface(97 项通过)
  • cargo fmt --check
  • cargo test -p host-core --locked adapter_registry_covers_every_portable_domain
  • cargo test -p host-core --locked application_show_thinking_roundtrips_and_keeps_local_only_settings

完整 apps/desktop 测试套件在当前 Windows 环境仍受 sh 缺失、符号链接权限与 Electron 二进制缺失影响,未作为本 PR 的门禁结论;相关改动范围的测试均已通过。未运行 verify:ui:*。

兼容性

  • 新字段缺省/非法值归一化为 fully-folded。
  • 旧 keepCommandsExpanded 仍可读取,但不再控制布局。
  • 文档与 ADR 已同步,包括将 Thinking TextShimmer 记为 ADR 0149 的明确例外。

Add a persisted 	ranscriptDisplayMode setting with flat, command-first,
and fully-folded layouts. Fully-folded keeps the v0.20.0 command grouping,
command-first keeps run rows standalone, and flat removes nested activity
groups while preserving one outer process.

Make Thinking rows default expanded in flat and command-first, collapse to
a whole-run TextShimmer indicator, and use the same shimmer for the hidden
reasoning live indicator. Keep fully-folded's existing Thinking defaults.
Deprecate keepCommandsExpanded; it remains readable for compatibility.

Cover mode segmentation, settings normalization and sync, and renderer
wiring; update transcript and settings specs and ADRs.
@Tioit-Wang Tioit-Wang changed the title feat(transcript): 三种过程显示模式与 Thinking 流光 feat(transcript): add display modes and thinking shimmer Oct 21, 2026
v_wyxgwang added 2 commits October 21, 2026 18:04
Open the completed process and Thinking disclosure before asserting the
retained reasoning text now that a collapsed Thinking row shows only its
label. Also assert flat mode keeps one outer process without nested
activity groups or standalone run wrappers.
The shared transcript module now imports the Thinking shimmer. Keep the
session-reference renderer probe's dependency table complete so it can
continue exercising message references without loading the app store.
@vastsa
vastsa merged commit ccc2823 into main Oct 21, 2026
7 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 8576493a Deployed Oct 21, 2026 by vercel[bot]
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.

2 participants