You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Canvas switching stalls while assistant harness discovery is running #194
area:canvasCanvas, nodes and direct manipulationarea:harnessHarness and skill integration (Default, OpenCode, Codex, Claude Code, Jiuwen, DSH)type:bugSomething is broken
Switching between two already-opened canvases can take several seconds, even when both are empty and saved. The UI acknowledges the click promptly, but the destination canvas remains unavailable while the switch is in progress.
Reproduction
Open two empty projects in the same browser tab and leave the assistant collapsed.
Alternate between them using the canvas project picker.
Measure from clicking the destination project to the point when its title and saved state are visible and the picker is actionable again.
Findings
On main at 0d68f4bc, 10 measured switches after two warm-ups took 2,117 ms median and 2,970 ms P90. In a separate timing run, the browser waited 1,163–2,689 ms before sending POST /open-canvas. After sending it, the first response byte arrived in 3–8 ms.
Canvas changes trigger assistant harness status and model discovery, even with the assistant collapsed. These requests can run local CLI subprocesses and occupy the browser's connections to the server. Intercepting only the status and model requests reduced switch latency to 135 ms median / 241 ms P90. Intercepting only the canvas subscription left the delay in place.
Expected behavior
When switching between two previously opened, saved, empty canvases with the assistant collapsed, measure both intervals from the destination project click.
Visible switch feedback: P90 ≤ 100 ms.
Destination canvas ready: median ≤ 500 ms and P90 ≤ 1,000 ms. The destination title and saved state are visible, and the project picker is actionable.
area:canvasCanvas, nodes and direct manipulationarea:harnessHarness and skill integration (Default, OpenCode, Codex, Claude Code, Jiuwen, DSH)type:bugSomething is broken
Activity