Skip to content

[bug] Canvas switching stalls while assistant harness discovery is running #194

Closed

Description

@FayeSpica

Impact

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

  1. Open two empty projects in the same browser tab and leave the assistant collapsed.
  2. Alternate between them using the canvas project picker.
  3. 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.

Activity

  1. added
    type:bug
    area:canvas
    area:harness
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:canvasarea:harnesstype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions