fix(ui): restore TurnCollapse step-based rendering, batch read-only in sub-agents#4200
Closed
CVEngineer66 wants to merge 1 commit into
Closed
fix(ui): restore TurnCollapse step-based rendering, batch read-only in sub-agents#4200CVEngineer66 wants to merge 1 commit into
CVEngineer66 wants to merge 1 commit into
Conversation
…n sub-agents - Re-add TurnCollapse component and stepGroups/collapseBatch rendering that upstream removed, restoring visual distinction between standard, compact, and minimal display modes - Batch completed read-only tools into ReadOnlyBatch inside sub-agent nested areas (tool__nested) - Status icons on tool names: green ✓ for done, red ✗ for errors - Move ⊞N sub-agent call count to left of tool name - Shimmer animation covers tool names uniformly (not just subject) - Auto-close reasoning when streaming finishes (respects user toggle) - Remove softCompactNoticed reset to suppress compaction notice spam - Default display mode: minimal → standard - Add back i18n keys for transcript.processed/processedDuration - Extract isReadOnlyTool() to shared module (useController.ts)
6be7812 to
f9e8066
Compare
Owner
|
Thanks — the rebase and the improvements look good. Landed it as #4206 on current Two things I flagged on #4206 as follow-ups rather than blockers: the default display mode now flips |
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.
摘要
恢复被上游删除的步骤折叠渲染和「已处理 Xs」折叠线(TurnCollapse),三种展示模式现在有可见的视觉差异。
改动
1. TurnCollapse 恢复
stepGroups记忆计算、collapseBatch/flushCollapseBatch管线以及紧凑/极简模式下的步骤分组渲染2. 子代理嵌套内的只读批处理
explore/research/task等子代理卡片内部的工具调用同样获得 ReadOnlyBatch 折叠,连续完成的只读工具自动归并3. 状态图标
⊞N移到工具名左侧4. UI 优化
minimal改为standard5. 上下文压缩提示
softCompactNoticed在每次工具循环中被错误重置)6. 代码质量
isReadOnlyTool()提取到共享模块useController.ts,不再在 ToolCard.tsx 和 Transcript.tsx 中重复定义useEffect导致用户手动打开思考后仍被自动关闭的 bug涉及文件(11 个,+331/-91)
ToolCard.tsxTranscript.tsxMessage.tsxstyles.cssdisplayMode.tslocales/en.ts,zh.tsconfig.go,settings_app.gocompact.gouseController.ts