From d2d705ed4cee9bac4355533a18f4077983da637a Mon Sep 17 00:00:00 2001 From: Huarch Date: Thu, 8 Oct 2026 17:34:42 +0800 Subject: [PATCH] fix(workbench): refine agent dock and smooth map resizing Unify dock surfaces, headers and dividers, and remove the visible context strip. Limit pointer resizing to 400-640px and reveal the edge grip on hover. Resize and redraw the map in the same layout cycle to prevent blanking and lag. Preserve horizontal centering during conversation control press feedback. Validation: isolated lint, typecheck, 21 focused unit tests, and 10 relevant browser checks passed. Snapshot baselines regenerated from the isolated change. The existing mobile alert summary test also fails on unchanged HEAD because the expected demo alert source is unavailable in this environment. --- .../agent/components/agent-command-panel.tsx | 78 +++---- .../components/agent-operational-brief.tsx | 2 +- .../components/workbench-agent-panels.tsx | 49 ++-- .../components/workbench-top-bar.tsx | 2 +- .../workbench/hooks/use-agent-panel-resize.ts | 93 +++----- .../workbench/hooks/use-workbench-map.ts | 34 ++- .../workbench/layout/workbench-layout.test.ts | 14 +- .../workbench/layout/workbench-layout.ts | 10 +- src/features/workbench/map-workbench-page.tsx | 1 + src/styles.css | 211 +++++++++++++++++- tests/browser/agent-acrylic.e2e.ts | 118 +++++++++- tests/browser/agent-panel-resize.e2e.ts | 185 +++++++++++++++ .../browser/agent-streaming-stability.e2e.ts | 25 ++- tests/browser/workbench-visual.e2e.ts | 28 ++- ...workbench-desktop-light-chromium-linux.png | Bin 246448 -> 232552 bytes ...bench-desktop-satellite-chromium-linux.png | Bin 268692 -> 250112 bytes ...ench-mobile-agent-light-chromium-linux.png | Bin 126605 -> 114558 bytes ...ile-condition-satellite-chromium-linux.png | Bin 102526 -> 98148 bytes ...h-mobile-launcher-light-chromium-linux.png | Bin 100115 -> 96220 bytes 19 files changed, 680 insertions(+), 170 deletions(-) diff --git a/src/features/agent/components/agent-command-panel.tsx b/src/features/agent/components/agent-command-panel.tsx index f965132..ed1ee18 100644 --- a/src/features/agent/components/agent-command-panel.tsx +++ b/src/features/agent/components/agent-command-panel.tsx @@ -1,7 +1,6 @@ import { Activity, CheckCircle2, - Clock3, ChevronsUpDown, ChevronLeft, DatabaseZap, @@ -175,7 +174,6 @@ export function AgentCommandPanel({ approvalMode = "request", uiResults = [], reviewPanel, - workspaceContext = [], prompt, onCollapse, onPromptChange, @@ -342,11 +340,12 @@ export function AgentCommandPanel({