[macOS] Prime Agent 0.7.2 loses supervisor ownership after registry file pruning #1504
Closed
ss800803
started this conversation in
Bug reports
Replies: 1 comment
|
Fixed in 0.7.3 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Fresh reproduction on macOS with Prime Agent 0.7.2 of the
supervisor_generation_stale/ ownership-loss failure described in #1148 and #1235. In this reproduction, the daemon had been running for about five days. The failure also left stale process and lock state that prevented a clean restart.Environment
Symptoms
The TUI reported:
Local inspection showed:
owner.json.prime-agent status --jsonandprime-agent doctor --jsonreported the daemon as unreachable while also reporting tracked workers.prime-agent shutdown --forceremoved the stale socket but could not safely stop the old worker.After terminating the verified orphaned supervisor and worker processes and waiting for the stale lock to clear, a new supervisor generation and worker started successfully and the saved session resumed. No session transcript, private prompt, API key, or token is included here.
Suspected trigger
The supervisor had been running for about five days, and the ownership directory was left behind without its files. This strongly suggests the same macOS temporary-directory pruning mechanism described in #1148: the registry files are stored below
$TMPDIR, but the live supervisor does not refresh them often enough.I have not confirmed a timezone change for this reproduction, so this appears more consistent with the file-pruning path than the timezone-specific trigger in #879/#1472.
Expected behavior
When the supervisor loses its durable ownership record, Prime Agent should:
shutdown --forceand--resumeshould not require manual PID termination for this recoverable state. The status command should also agree with the actual daemon/socket state.Related reports
supervisor_generation_staleBug Report DiscussionThis is a fresh 0.7.2 reproduction with additional evidence about the empty owner directory, stale worker, and stale lock. Please consolidate it with the appropriate existing report if needed.
All reactions