Skip to content

feat(opencode): open session list with --resume#35023

Open
jrb00013 wants to merge 3 commits into
anomalyco:devfrom
jrb00013:cli-resume-flag
Open

feat(opencode): open session list with --resume#35023
jrb00013 wants to merge 3 commits into
anomalyco:devfrom
jrb00013:cli-resume-flag

Conversation

@jrb00013

@jrb00013 jrb00013 commented Jul 2, 2026

Copy link
Copy Markdown

Issue for this PR

Relates to #18569

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds opencode --resume to open the session list picker on startup so you can choose which session to continue.

This is separate from --continue / -c, which still jumps straight into the most recent root session. --resume prefetches session data the same way, stays on the home route, and opens DialogSessionList (the same UI as /sessions).

Only supported on the default TUI (opencode). It cannot be combined with --continue, --session, --fork, or --mini.

How did you verify your code works?

  • bun test test/app-lifecycle.test.tsx in packages/tui — includes resume staying on home without auto-continue
  • bun test test/cli/help/help-snapshots.test.ts in packages/opencode
  • bun typecheck in packages/opencode and packages/tui

Manual check: run opencode --resume and confirm the session list dialog appears.

Screenshots / recordings

N/A (TUI dialog on startup)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

jrb00013 and others added 2 commits July 2, 2026 16:16
Expose --resume alongside --continue on the default TUI, run, and attach
commands so users can reopen their most recent session with familiar CLI
wording.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace the mistaken --continue alias with a dedicated --resume flag that
opens the TUI session picker on startup. Prefetch session list data like
--continue, but stay on home and show DialogSessionList for selection.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jrb00013 jrb00013 changed the title feat(opencode): add --resume alias for last session feat(opencode): open session list with --resume Jul 2, 2026
@jrb00013

jrb00013 commented Jul 2, 2026

Copy link
Copy Markdown
Author

Update: --resume now opens the session list picker (same as /sessions), not auto-continue. --continue / -c unchanged.

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