OpenCode v2 TUI plugin. When you exit OpenCode (via /exit, /quit, /q, Ctrl+C, or closing the terminal), it copies a continue-session CLI command to your clipboard.
- In a session:
opencode --session <sessionID> # <session title> - Otherwise:
opencode --continue
From npm (once published):
opencode plugin add opencode-copy-continue-on-exitFrom GitHub:
opencode plugin add github:agustif/opencode-copy-continue-on-exitThen fully restart OpenCode. Verify with opencode2 plugin list.
Uses pbcopy (macOS), wl-copy/xclip/xsel (Linux), clip (Windows), with an OSC 52 fallback.
MIT