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
@@ -121,11 +121,7 @@ describe("chat command payloads", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("reads sub-sessions and task output by id", () => {
|
||||
expect(chatCommands.readSubagent("s1", "researcher")).toMatchObject({
|
||||
method: "subagent.read",
|
||||
params: { target: "researcher" },
|
||||
});
|
||||
it("reads task output by id", () => {
|
||||
expect(chatCommands.stopTask("s1", "t1")).toMatchObject({
|
||||
method: "task.stop",
|
||||
params: { taskId: "t1" },
|
||||
|
||||
Reference in new issue
Block a user