Skip to content

Live sessions: user-controlled startup restore (ask / always / never, multi-session picker) #197

Description

@raiseCatError

Startup currently reattaches silently when exactly one detached live session exists. Make startup restoration user-controlled.

Settings (two independent settings, integrated with the existing config UI)

  • Startup restore: Ask (default) / Always / Never
  • Multiple detached sessions: Ask which (default) / Open all

One detached session, Ask: lightweight prompt showing cwd, running command and detached/idle age. Resume (R/Enter), Not now (N/Esc: start fresh, leave it running), Always resume (A: persist and resume), Never resume (D: persist and start fresh).

Multiple detached sessions, Ask: picker with Up/Down, Space toggle, A select all, Enter resumes the selected ones, Esc (or Enter with none selected) starts fresh.

Opening several: the current window attaches one session; each of the others opens in a new host terminal window where the host supports it. Where it doesn't, nothing is lost: the current window attaches one, and the rest stay detached with a clear message on how to attach them.

Never means no automatic resume only. It never kills sessions, and /resume, detach and reattach are unaffected. There is no destructive startup option: killing stays an explicit, confirmed /resume action.

Part of #125.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-human-testRequires human terminal validation

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions