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.

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