feat: opencode session move / session detached#24728
Conversation
…ults to current project
Import ProjectID for branded type in from-project filter
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Found potential related PRs:
These PRs appear to be part of the same session management feature work, addressing issue #24708. |
opencode session move / session detached
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Closes #23249
#24708by way of newopencode sessioncommandsType of change
What does this PR do?
Add
opencode session moveandopencode session detachedto [session.ts]((https://github.com/rektide/opencode-session-move/blob/main/packages/opencode/src/cli/cmd/session.ts), to move sessions, and find sessions which are detached, respectively.movenotes--from-id(multiple),--from-dir(supportscwd, glob */? wildcards),--from-projectselect sessions to move.--to-directory/--to-projectset new values. Default to current project root/ID, or use special valuekeepto leave untouched.--dry-runto print matches without doing any changesdetached.git/opencodecache orgit rev-list.How did you verify your code works?
I've been trying a variety of
moveflags to fix and rework a variety of my own detached sessions, testing locally for expected output. I've useddetachedto find detached sessions.Screenshots / recordings
Sample
detachedoutput, showing a variety of detached reasons:Checklist
If you do not follow this template your PR will be automatically rejected.