Skip to content

Desktop: intermittent hang at "Project data is still loading", client never opens its WebSocket #381

Closed

Description

@mubeda

Summary

The packaged desktop app sometimes stops at "Project data is still loading" and never finishes, because the web client never opens its WebSocket connection to the in-process server. Seen three times while validating #379; cause unknown and not reproduced since.

Steps to reproduce

Not deterministic. The launches that hung were:

  1. Build the packaged macOS arm64 app.
  2. Run the WebdriverIO real-provider spec apps/desktop/e2e/specs/manual/send-to-agent-real-providers.e2e.ts with a fresh state folder and the Profiler on (recipe: docs/testing/cross-platform-validation.md, "Send to agent and agent messaging").
  3. Wait for the project list to load.

Expected vs actual

  • Expected: the client connects and the project data loads within a few seconds.
  • Actual: the screen stays at "Project data is still loading"; the client never opens its WebSocket, with no console error and no module load error.

Environment

Evidence

  • 3 of the launches of one build hung, all inside one 22-minute window.
  • 0 of 10 launches before and after that window hung, and 0 of 6 on a build instrumented to relay the web console.
  • Ruled out: an import cycle introduced by 0e928d1.
  • Possibly related: in an earlier run the same day, a request stayed queued against an idle Claude AI Terminal while the client logged eight 5.5 s stalls (also not reproduced).
  • Recorded in docs/plans/2026-11-13-agent-messaging/progress.md (log line of 2026-11-15 14:58).

If it recurs, capture

  • The web console relay output.
  • What is listening on the in-process server's port, and whether it answers an HTTP request.
  • The Profiler session (rpc.hang, client stall findings, any crash dump) and the native log.

Done when

The cause is found and fixed with a test, or at least 30 consecutive packaged real-provider launches show no hang and the issue is closed as not reproducible with that evidence.

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

    bugSomething is broken or behaving incorrectly.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions