Skip to content

Fix owner eviction, stuck cleanup, and unpublished completed work - #9

Merged
d3cker merged 1 commit into
releasefrom
codex/recover-owner-scope-failure
Sep 14, 2026
Merged

d3cker merged 1 commit into
releasefrom
codex/recover-owner-scope-failure

Conversation

@d3cker

@d3cker d3cker commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Long-running workers could finish after OpenCode evicted the automation owner, leaving changes unpublished and the reloaded plugin failed with a held lock. The 0.6.2 plugin-list heartbeat did not refresh OpenCode's session-activity timer, and the affected in-process SDK adapter ignores AbortSignal.

Use durable activity on one empty maintenance session per owner, without prompting a model or touching work sessions. Bound local SDK waits and RPC disposal, allow retiring locks to be released before reacquisition, and preserve healthy workers for reconciliation by their saved session ID. Reject checkpoint writes queued after shutdown.

Validation: CI passed on Node 22 and 24 (143 tests, lint, typecheck, build, package installation). Coverage includes the new eviction-to-publication regression and real lock handoff. The regression models an SDK wait that ignores cancellation and checks that the replacement publishes once without another prompt.

Production recovery: issue wiiii653/yoomp-#18 was backed up, rebuilt, verified with 134 passing CTest tests, and published as wiiii653/yoomp-#19. This branch's package was deployed as an emergency hotfix; it is not an official release. Both configured owners report active, polling succeeds with zero failures, activity RPC responds, and the server emitted a durable session.renamed event carrying the correct owner location.

The maintenance session is visible in session history as Automation owner keepalive, has no messages, and consumes no model tokens. Keepalive requires the matching registered background service; standalone instances retain that limitation.

@d3cker
d3cker merged commit a5804b9 into release Sep 14, 2026
4 checks passed
github-actions Bot added a commit that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant