Repository navigation
feat(ui): Codex 式子智能体行与单一「子智能体」侧栏 Tab - #8
Merged
Merged
Conversation
- 时间线:1.3「Subagent 工作卡」树形外框退役,改为每个子智能体一行(SubagentWorkRows): 头像(运行中动态)+ 名称(任务标题优先)+ 类型灰色小标签(默认 subagent 不显示) + 状态(运行中 · 用时 / 已完成);失败/已停止原因一行灰字;可停时行尾单个停止。 不再有整卡折叠、「停止全部」、模型/步骤数(模型在详情头部右上角)。 - 右侧:每个 root 只有一个「子智能体」Tab(subagent-directory),默认目录,选中某个子智能体 进入详情,左上角返回箭头回到目录;时间线/状态面板/目录点击都写入同一 Tab 的选择字段, 不再新建逐子智能体 subagent-session Tab,同 root 旧 Tab 在下次打开时并入。 - edit/retry 使选中子会话失效时只回到目录,不关闭 Tab。 - 同步 spec(multi-agent-display-spec、subagent-session-side-tabs/directory、DESIGN、CONTRACT)、 i18n(zh-CN/en-US)、单测与桌面 E2E(MA16 单一 Tab 流程)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
背景
用户要求子智能体交互"1:1 学习 Codex 桌面版"。1.3 的时间线「Subagent 工作卡」是带标题、汇总、主 Agent 节点和树形连接线的大外框,右侧又为每个子智能体单独开一个侧栏 Tab,信息重、Tab 会越开越多。
设计意图
snapshot.subagents、父时间线subagent行、backgroundWorks与useSessionSubagents。workspaceSidePane.ts(openSubagentSessionSidePane/openSubagentDirectorySidePane/syncSubagentSessionSidePaneTabs),不进 session、store 或协议。修改前后行为
subagent时不显示)+ "运行中 · 用时" / "已完成";失败/已停止在下方用一行灰字写原因;可停时行尾一个停止按钮。不再有整卡折叠和"停止全部"subagent-sessionTab同步更新了 spec:
docs/desktop/multi-agent-display-spec.md(新增「对话行内子智能体行」「右侧"子智能体"Tab」两节和 MA16 验收)、docs/subagent-session-side-tabs.md、docs/subagent-session-directory.md、DESIGN.md(行内头像运行中可动)、packages/ui/src/subagent-display/CONTRACT.md,以及 zh-CN/en-US i18n(删除退役的 workCard 文案,新增subagentDisplay.sidePane.back,中文 Tab 名改为"子智能体")。验证
pnpm typecheck:通过(0 错误)pnpm lint:0 错误,89 条 warning(与 main 基线持平,本 PR 没有新增)pnpm architecture:check --changed:OK,0 violationsoxfmt --check(改动文件):通过subagentWorkRows.test.ts;更新 workspaceSidePane、subagentSidePane、subagentDirectorySidePane、subagentSessionHeader、v4ConversationTurnSubagentCardCollapse);packages/desktop/test/subagentWorkCardScope.test.ts通过manual-review/pending/conversation-session-multi-agent-display(MA01–MA04 + 新增 MA16:7 行无外框、单一 Tab、切换详情、返回目录、点目录项再进入)通过conversation-session-send-message-resume-stop与conversation-session-subagent-respond-to-coordinator:两个都失败,但在 stash 掉本 PR 改动后的干净基线上失败方式完全一样(前者等不到 legacyAgenttool call block;后者beforeEach里chat-mode-select-trigger不可点击),属于基线问题,与本 PR 无关风险 / 未完成
conversation-session-subagent-work-card、subagent-side-tabs、external-engine-native-subagents、background-bash-output这几个 E2E 已按新交互改了选择器和断言,但没有运行:前者需要打包后的应用(ZCODE_E2E_PACKAGED_APP_PATH),其余需要真实 provider 或很长的运行时间。/remote抽屉里的同一 Tab 也能通过返回箭头进入目录;已结束分页在手机上不可用时会显示既有的"无法加载"提示(运行中分区来自投影)。🤖 Generated with Claude Code