Skip to content

feat(cli): add open --last to resume the most recent session#213

Open
jongio wants to merge 1 commit into
mainfrom
idea/open-last
Open

feat(cli): add open --last to resume the most recent session#213
jongio wants to merge 1 commit into
mainfrom
idea/open-last

Conversation

@jongio

@jongio jongio commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Resumes the most recently active session without looking up its ID.

What changed

  • dispatch open --last (or -l) resumes the session with the most recent activity, ordered by last active time the same way the default list sort works.
  • Honors --mode so you can override the launch mode for that one resume.
  • Returns a clear error when --last is combined with an explicit ID, and when the store has no sessions.
  • Updated the usage help and README.

Testing

  • mage preflight (format, vet, lint, tests, dead-code, install verification) passes.
  • Added parser and runner tests covering --last, --last --mode, --last with an ID (error), empty store, and lookup errors.

Closes #208

Adds a --last flag to the open command so users can resume their most
recently active session without looking up its ID. Reuses the existing
launch path and honors --mode. Errors clearly when --last is combined
with an explicit ID and when the store has no sessions.

Closes #208

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jongio jongio self-assigned this Jul 3, 2026
@jongio jongio added the idea Feature idea from the idea pipeline label Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add open --last to resume the most recent session

1 participant