Skip to content

Make GET /api/info side-effect free #50

Description

@fiddur

GET /api/info calls findOrCreateSession, which creates sessions, moves threads between sessions (carry-forward), re-anchors findings, and rewrites the ambient current-session file — on a 5-second poll from every open tab. A GET doing writes is the root cause under the ambient-file bug family (see the agent-session issue).

Proposal: session creation/carry-forward moves to an explicit POST /api/sessions/ensure, called on page load and CLI start; /api/info becomes a pure read.

Effort: 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