feat(workbench): Tasks 与会话双向深链 (#1963) - #1976
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: Claude Code <claude@vectorcontrol.tech>
Co-authored-by: Claude Code <claude@vectorcontrol.tech>
Co-authored-by: Claude Code <claude@vectorcontrol.tech>
Co-authored-by: Claude Code <claude@vectorcontrol.tech>
Co-authored-by: Claude Code <claude@vectorcontrol.tech>
DeliciousBuding
force-pushed
the
feat/tasks-conversation-deeplink
branch
from
August 25, 2026 08:54
7dc07c0 to
161eb0b
Compare
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.
Tasks 与会话双向深链(#1963,UX F2)
任务卡 ↔ 承载会话双向深链 + 侧栏任务队列折叠组。工作台页面是状态驱动(无 URL 路由),深链以「意图队列 + shell 统一应用」实现:
workbenchTaskDeepLinks状态模块存意图/已应用链接/任务焦点,useWorkbenchTaskDeepLinksshell 钩子消费意图执行页面/会话切换,两个 UI 面只读快照渲染往返入口,无需穿透 WorkbenchFrame 传参。验收对照
TaskItem.conversationId绑定时);点击切 chat 页并激活承载会话,侧栏出现「返回任务」chip,点击回 runs 页并恢复任务选中(路由状态在 chat 页卸载,回程经taskFocus令牌重新采纳)WorkbenchTasksRouteView.test.tsx、useWorkbenchTaskDeepLinks.test.ts、useWorkbenchTasksRoute.test.ts、workbenchTaskDeepLinks.test.tsConversationSidebar.test.tsx、useWorkbenchTaskDeepLinks.test.ts、useWorkbenchTasksRoute.test.tstaskQueue.*4 键中英成对,resources.test.ts键集/占位符一致性校验通过app/shared150 文件全绿改动范围
workbenchTaskDeepLinks.ts(深链意图/应用态/队列存储)、useWorkbenchTaskDeepLinks.ts(shell 应用钩子)+ 各自测试TaskItem增可选conversationId;mock 种子/池按演示会话 id 绑定(对齐app/shared演示会话种子,仅 demo 车道)useWorkbenchTasksRoute发布侧栏队列 + 采纳深链任务焦点ConversationSidebar任务队列折叠组 + 返回任务 chip;WorkbenchTasksRouteView深链条(返回会话/进入承载会话,flex 列容器不裁切页面)AgentHubWorkbench.tsx一行钩子调用(shell 持有页面/会话状态,为深链唯一应用点;WorkbenchFrame 等禁改文件零改动)chatview命名空间追加taskQueue.title / openConversation / backToTask / backToConversation(中英成对)验证证据(L0,本机)
pnpm -C app/workbench test -- --run --no-file-parallelism --maxWorkers=1→ 142 文件 / 1412 用例全绿pnpm -C app/shared test -- --run --no-file-parallelism --maxWorkers=1→ 150 文件 / 2593 用例全绿pnpm typecheck:@agenthub/workbench、@agenthub/shared均通过git fetch origin && git rebase origin/master(origin/master 无新提交,up to date)real_tested=false(L0 单元/静态;未跑 Playwright/Visual QA 与真实栈验证)
Closes #1963
Closes #1976