3729372e1436fca5c3308c2467ccc31a80825eec
Fixes HWLAB #759 round-3 v0.2 WebUI issues introduced by the React migration: 1. device-pod right sidebar could not be re-expanded because the toggle button was nested inside the right sidebar which is fully hidden when collapsed. Move the toggle button to be a direct child of the right sidebar via a new anchor button + content wrapper. Add --right-collapsed-width and a vertical-rl text rotation so the toggle stays visible and accessible when the right sidebar is collapsed. 2. The Session sidebar and right sidebar resize handles had no event handlers after the React migration; dragging did nothing. Add a new useSidebarResize hook with pointer/keyboard handlers, dynamic bounds based on viewport and opposite sidebar width, localStorage persistence, and CSS variable injection on the workbench shell. 3. document.querySelector("#command-form > div") (the input shell) was on the same row as the timeout selects. Restore the original layout by switching the command-bar to grid-template-areas with the input shell on its own row and the three selects on a second row. 4. Code Agent was unusable from the React UI because the 202 response has status=running and no reply text; the React UI marked the message as completed with the fallback empty body. Add a polling loop in the workbench store that follows resultUrl until status reaches a terminal value, and surface assistantText / reply.content from the polled AgentChatResultResponse. Add AgentChatResultResponse, AgentChatReply and AgentRunProvenance types plus a getAgentChatResult API method. Verified locally on G14:web/hwlab-cloud-web: bun run check (12 fresh dist files), bun run scripts/tsc-check.ts (strict React TSX, 0 explicit any), bun test (2 pass / 0 fail). Co-authored-by: HWLAB <ci@hwlab.local>
Description
UniDesk controlled mirror for pikasTech/HWLAB
Languages
TypeScript
63.3%
JavaScript
21.9%
Vue
7.4%
Go
3.2%
Python
1.9%
Other
2.2%