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.
GET /api/infocallsfindOrCreateSession, 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/infobecomes a pure read.Effort: M.