Repository navigation
feat(transcript): add display modes and thinking shimmer - #1798
Merged
Merged
Conversation
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.
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.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
新增
transcriptDisplayMode设置,提供三种助手过程显示模式:flat):保留一个外层过程折叠头,不再渲染嵌套活动组;进行中按顺序显示工具、命令、Thinking 与进度文本,完成后只保留最终 assistant 文本。command-first):命令始终独立成行;其他连续活动组成活动组;中间普通 assistant 文本和命令都会打断组。fully-folded,默认):沿用 v0.20.0 的分组方式,Bash/run 留在活动组内;只有中间普通 assistant 文本会拆组。同时调整 Thinking:
showThinking=true时,平铺与命令优先的 Thinking 默认展开,可手动折叠;折叠后只显示 Thinking 指示器,不显示摘要。showThinking=false时,仅保留 reasoning 流式期间的整段TextShimmer“Thinking” 指示器;1.2s 线性扫光、220ms 淡回,无 spinner/脉冲点/逐字动画,减少动态效果时静态。keepCommandsExpanded标记为 deprecated,仅保留持久化兼容,不再在设置中暴露,也不再参与渲染。默认值保持fully-folded。验证
已在工作区执行:
pnpm --filter @pi-desktop/desktop typecheckpnpm --filter @pi-desktop/desktop lintpnpm --filter @pi-desktop/desktop buildnode --test:turn-process、Thinking UI、transcript style、显示模式解析/设置/渲染契约、settings roundtrip、session collaboration IPC、active turn surface(97 项通过)cargo fmt --checkcargo test -p host-core --locked adapter_registry_covers_every_portable_domaincargo 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仍可读取,但不再控制布局。TextShimmer记为 ADR 0149 的明确例外。