refactor(web): remove the dead right-panel and subagent-preview code
v0.1.1 replaced both surfaces: the session tray took the right panel's todo/tasks, and the in-place `?sub=` child view took the subagent preview. - delete `features/chat/side-panel.tsx` (nothing imported it since the tray landed) - delete `SubagentModal` and its private helpers (`SUB_BADGE`, `SUB_DOT`, `SubagentEntry`, `parseSubagentLines`, `SUB_ROLES`); the child view builds its timeline from the parent's entries instead of `subagent.read` - drop `chatCommands.readSubagent` (its only caller is gone) - drop the deprecated store slice `PreviewTarget` / `preview` / `setPreview`, including the session-migration re-key and the `PanelTab` alias - drop their exclusive CSS (`.sub-item*`, `.sub-preview*`, `.sub-steer`) and the 6 orphan catalog keys (chat.subagentTitle, chat.preview, chat.previewNote, chat.task, chat.currentSubagents, chat.steerRequired) - tests: remove the two SubagentModal cases and the preview/readSubagent expectations (295 tests, down from 297 — exactly the deleted cases) Verification: typecheck clean, vitest 295/295, vite build green, visual matrix 24/24 clean.
This commit is contained in:
1 parent
bcf50b516f
commit
3789394c85
12 files changed
+12
-653
No files matched your search
@@ -39,7 +39,6 @@
|
||||
"chat.composerAria": "输入消息",
|
||||
"chat.composerPlaceholder": "给 pi2 发消息…",
|
||||
"chat.contextUsage": "上下文占用 {used} / {window}",
|
||||
"chat.currentSubagents": "当前 session 的子代理 · {n}",
|
||||
"chat.denied": "已拒绝该请求",
|
||||
"chat.deny": "拒绝",
|
||||
"chat.details": "参数详情",
|
||||
@@ -172,8 +171,6 @@
|
||||
"chat.plan.snapshot": "快照 {time}",
|
||||
"chat.plan.title": "计划",
|
||||
"chat.planAria": "查看待办计划",
|
||||
"chat.preview": "只读预览",
|
||||
"chat.previewNote": "只读预览 · 子代理对话不会写入父会话",
|
||||
"chat.previewRunning": "正在执行…",
|
||||
"chat.previewSubagent": "预览子代理",
|
||||
"chat.progress": "进度 {done}/{total}",
|
||||
@@ -229,7 +226,6 @@
|
||||
"chat.steer": "Steer",
|
||||
"chat.steerMode": "转向模式:{mode}",
|
||||
"chat.steerPlaceholder": "发送 steer 指令给该子代理…",
|
||||
"chat.steerRequired": "请输入 steer 指令",
|
||||
"chat.steerSent": "已发送 steer 指令:{text}",
|
||||
"chat.stopTask": "停止任务",
|
||||
"chat.stopTaskText": "确认停止后台任务「{command}」?",
|
||||
@@ -261,7 +257,6 @@
|
||||
"chat.subagentFilter": "子代理筛选",
|
||||
"chat.subagentName": "子代理名称",
|
||||
"chat.subagentNamePlaceholder": "例如 ui-research",
|
||||
"chat.subagentTitle": "子代理 · {name}",
|
||||
"chat.subview.back": "父级",
|
||||
"chat.subview.backTo": "返回 {name}",
|
||||
"chat.subview.copyId": "复制子代理 ID",
|
||||
@@ -282,7 +277,6 @@
|
||||
"chat.tabSubagents": "子代理",
|
||||
"chat.tabTasks": "任务",
|
||||
"chat.tabTodo": "待办",
|
||||
"chat.task": "任务",
|
||||
"chat.taskExitCode": "退出码",
|
||||
"chat.taskLabel": "任务 task *",
|
||||
"chat.taskOutput": "任务输出 · {id}",
|
||||
|
||||
Reference in new issue
Block a user