Skip to content

Make planned-restart continuation always-on and retire its toggle - #846

Merged
hamzamerzic merged 2 commits into
mobius-os:mainfrom
hamzamerzic:fix/retire-restart-resume-toggle
Aug 22, 2026
Merged

Make planned-restart continuation always-on and retire its toggle#846
hamzamerzic merged 2 commits into
mobius-os:mainfrom
hamzamerzic:fix/retire-restart-resume-toggle

Conversation

@hamzamerzic

Copy link
Copy Markdown
Collaborator

What & why

A planned restart is initiated by Möbius itself, so continuing the interrupted work afterward is always the right behavior. The per-chat "Continue after planned restarts" toggle (and its owner-default seed) only ever offered a way to break that, so this removes the whole preference layer and makes planned-restart continuation always-on.

Changes

  • Remove the chat-settings Continue after planned restarts switch and its frontend hook state, handler, and cached field.
  • Drop auto_resume_on_restart from the ChatPatch API, the chat-detail response, and chat creation; a PATCH that still sends it is now ignored rather than honored.
  • Remove the auto_resume_on_restart_default owner column.
  • Keep the per-chat auto_resume_on_restart column, now purely as an internal latch: it defaults on for every chat and is cleared only by delegations.mark_cancelled, so a cancelled delegated child cannot resurrect itself when the boot sweep claims restart parks.
  • Add appended migration 0016_retire_restart_resume_toggle: it lifts every chat a prior toggle latched off (excluding cancelled delegation children) and drops the dead owner seed column, guarded on the seed column's presence so it no-ops on databases that never carried it.

Testing

  • Backend: test_db_migrations.py, test_chat_agent_settings.py, test_delegations.py, test_limit_park.py (176 passed) and scripts/check-schema-migrations.py (16 immutable migrations verified).
  • Frontend: the affected ChatView/Shell lib and hook suites (61 passed).

@hamzamerzic hamzamerzic added area: backend Server and API behavior maintenance Internal cleanup, dependency, or upkeep work labels Aug 22, 2026

@miljanm miljanm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: all clear

I didn't find a concrete issue in this revision. This is a QA second look, not a maintainer approval.

Reviewed revision 3b992a7871d3.

@hamzamerzic
hamzamerzic added this pull request to the merge queue Aug 22, 2026

@miljanm miljanm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: all clear

I didn't find a concrete issue in this revision. This is a QA second look, not a maintainer approval.

Reviewed revision 94f6ad0f559b.

@miljanm miljanm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: all clear

I didn't find a concrete issue in this revision. This is a QA second look, not a maintainer approval.

Reviewed revision 94f6ad0f559b.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Aug 22, 2026
hamzamerzic and others added 2 commits August 22, 2026 20:07
A planned restart is initiated by Möbius itself, so continuing the
interrupted work afterward is always the right behavior. The per-chat
"Continue after planned restarts" toggle (and its owner-default seed) only
ever added a way to break that, so remove the whole preference layer: the
chat-settings switch, the API field, the chat-detail response field, the
owner default column, and the frontend hook/state/cache plumbing.

The per-chat `auto_resume_on_restart` column stays, but now purely as an
internal latch: it defaults on for every chat and is cleared only by
`delegations.mark_cancelled`, so a cancelled delegated child cannot
resurrect itself when the boot sweep claims restart parks.

A new appended migration (0016) retires the vestigial
`auto_resume_on_restart_default` owner seed: it lifts every chat a prior
toggle latched off (excluding cancelled delegation children) and drops the
dead column, guarded on the seed column's presence so it no-ops elsewhere.

Co-authored-by: Möbius Agent <mobius-agent@users.noreply.github.com>
Co-authored-by: Möbius Agent <mobius-agent@users.noreply.github.com>
@hamzamerzic
hamzamerzic force-pushed the fix/retire-restart-resume-toggle branch from 94f6ad0 to 24d12a5 Compare August 22, 2026 20:08
@hamzamerzic
hamzamerzic added this pull request to the merge queue Aug 22, 2026
Merged via the queue into mobius-os:main with commit d5917ff Aug 22, 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 maintenance Internal cleanup, dependency, or upkeep work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants