Skip to content

Resume sessions on launcher restart#620

Merged
meawoppl merged 1 commit intomainfrom
meawoppl/resume-sessions-on-restart
Apr 3, 2026
Merged

Resume sessions on launcher restart#620
meawoppl merged 1 commit intomainfrom
meawoppl/resume-sessions-on-restart

Conversation

@meawoppl
Copy link
Copy Markdown
Owner

@meawoppl meawoppl commented Apr 2, 2026

Summary

  • Store session_id in ExpectedSession config so it persists across launcher restarts
  • When relaunching expected sessions, pass the stored session_id as resume_session_id so the proxy resumes with --resume instead of creating a fresh session
  • Update the stored session_id after each successful spawn

Launcher-only fix — no protocol, backend, or migration changes. Existing configs without session_id get None (backward compatible) and start persisting after their next launch.

Test plan

  • Launch a session via the portal, verify launcher.toml now has a session_id field
  • Restart the launcher service, verify the session resumes (same session in UI) instead of creating a new one
  • Verify scheduled tasks still work independently
  • Verify clean exit (code 0) still removes the session from config

@meawoppl meawoppl merged commit 4a8ae9c into main Apr 3, 2026
16 checks passed
@meawoppl meawoppl deleted the meawoppl/resume-sessions-on-restart branch April 3, 2026 00:00
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