The latest version of OpenCode can move sessions across workspaces, via a new feature called "warping". The feature appears to let a session start in one project, be warped into a different environment such as a new Git worktree, and then continue there.
In the presented example, a prompt begins in a main project directory, then gets moved with the /warp command into a Git worktree so other work can continue in the original location. After changes are made in the worktree, running git status in the main project shows no changes, while the worktree contains the edits.
The session can also be moved back. OpenCode detects that changes were made and asks whether they should move along with the session. After confirming, the session returns to the local project and the edits show up there as well.
The screencast also mentions that multiple worktrees can be created and warped between, with changes moving along with them.
Source: OpenCode
