Skip to content

Collapse the live-queue scope mismatch (per-session queue vs process-global presence) #51

Description

@fiddur

Viewer presence is process-global (viewers.ts module state), the live queue is per-session (live.ts claims WHERE t.session_id = ?), and one server holds many sessions. A page open on one session and an agent parked on another wait forever for each other — this happened for real (the port-5394 incident).

Given real usage is one agent + one worktree + one review, either the claim route should serve the whole instance (the request already carries its sessionId), or the server should commit to one-review-per-process.

Effort: S–M.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions