You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two TUIs/CLIs on one project can both ensureRunning the same session (per-process maps only). Loops then take turns answering one user message — dozens of finish: "stop" replies.
Evidence
Tip d970983c0bca86d840ac036e2403fe91bc398e69 (base dev):
Leaf: cross-process EffectFlock (tryAcquire / Held.verify / holder) wrapping SessionRunState.ensureRunning / startShell; runLoop checks owns(sessionID) each iteration; waiting opencode run can render the other process's assistant reply
Author: dual-graph + real opencode run process tests; mutation-killed lock/owns/dedupe
Evidence class: SOURCE here. Live cross-process suite on tip: UNKNOWN (not executed in this pass)
Invariant: one session loop owner across processes; waiters cancel cleanly; lock loss stops before the next provider turn.
Ask (design, light) — prospective; non-blocking
Is mkdir-flock + heartbeat the permanent multi-process session lease, or should V2 SessionRunCoordinator become the single owner with this as a V1 bridge?
For never-again: when a waiter stores a prompt under another holder, is “holder answers at next turn boundary” the contract, or should the harness expose an explicit cross-process enqueue/ack?
Fork mirror of a sealed OSS review draft. Not posted upstream.
Activity
kvnloo commentedon Sep 25, 2026
Factory QA: duplicate mirror of #13 for
anomalyco/opencode#50968. Continue all current-head evidence/status updates on #13.