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
{{ message }}
Repository navigation
Commit fa1e404
Browse filesBrowse the repository at this point in the historyBrowse files
Make broker.json lifecycle follow the broker, not the session
The state record now lives and dies with the broker it points at:
- SessionEnd no longer clears the workspace-wide broker.json. The record
is shared by every session on the cwd, so a session ending must not
delete it out from under a peer whose turn is still running.
- The broker retires its own record at the start of shutdown(), guarded
on the endpoint still matching, so a clean exit (idle, broker/shutdown,
SIGTERM/SIGINT) leaves no stale pointer and a record that was already
replaced is never touched.
- The reuseExistingBroker path validates the recorded endpoint before
handing it out, so a record left by an uncleanly killed broker degrades
to a direct app server instead of erroring against a dead socket.
- getSessionRuntimeStatus checks the unix socket file exists before
reporting a shared runtime.
Co-Authored-By: Claude Fable 5 <[email protected]>
0 commit comments