Skip to content

Restore complete planned-restart chat recovery - #540

Merged
hamzamerzic merged 1 commit into
mobius-os:mainfrom
hamzamerzic:fix/restart-recovery-full-batch
Aug 2, 2026
Merged

Restore complete planned-restart chat recovery#540
hamzamerzic merged 1 commit into
mobius-os:mainfrom
hamzamerzic:fix/restart-recovery-full-batch

Conversation

@hamzamerzic

Copy link
Copy Markdown
Collaborator

Summary

  • remove the process-wide two-chat admission gate from authenticated planned-restart continuation
  • restore every eligible pre-restart chat in the same bounded continuation sweep
  • retain nonce, policy, latest-run, unanswered-question, and queued-app-work safeguards

Why

#516 introduced a global live-chat ceiling to keep restart recovery from competing with new shell work. The ceiling only admitted another parked chat after the total live count fell below two. Recovered agent turns can remain active for a long time, so later chats could stay parked indefinitely even though Continue after planned restarts was enabled.

The planned-restart contract established by #396 restores the exact authenticated set that was already concurrent before the restart. This focused change reinstates that contract. Provider-limit continuation remains separately staggered and starts at most one chat per sweep.

Safety

Automatic continuation still requires the current boot's supervisor-authenticated nonce, the latest exact restart park, the chat-local restart policy, and no unanswered question. New app-attributed work is still excluded. Deleted, superseded, or manually transitioned chats remain on their existing paths. The existing oldest-first sweep batch remains bounded.

Testing

  • restart and continuation suites: 92 passed
  • hermetic backend contract gate: 69 passed
  • Python compilation and diff checks passed
  • the complete Docker backend gate is unavailable inside the live app container; hosted CI remains authoritative

Co-authored-by: Möbius Agent <mobius-agent@users.noreply.github.com>
@hamzamerzic hamzamerzic added area: backend Server and API behavior bug Something isn't working labels Aug 2, 2026
@hamzamerzic
hamzamerzic added this pull request to the merge queue Aug 2, 2026
Merged via the queue into mobius-os:main with commit 6b50374 Aug 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: backend Server and API behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant