You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TUI Move session picker (/move — "Move to another project dir") only lists a shallow set of directories and cannot reach nested project directories the server already knows about. Searching for the nested project returns "No results found", and ctrl+m ("new") exits to the new-session screen instead of offering to add a path.
Reproduction
Have sessions in two directories, e.g. /work and /work/repos/HomeLab, where /work/repos/HomeLab is a registered project — it appears in the server's project / project_directory tables and in GET /session.
Attach a TUI whose session lives in /work.
Run /move (command palette: Move session, desc. "Move to another project dir").
The picker lists only /work and /work/repos. /work/repos/HomeLab is not listed.
Type HomeLab in the Search box → "No results found".
Press ctrl+m ("new") → returns to the new-session screen; it does not offer to add/enter a directory path.
Expected
The picker should surface registered project directories, including nested ones (/work/repos/HomeLab).
Search should match nested projects.
There should be a way to enter an arbitrary directory path to move to — the footer advertises new ctrl+m, but it does not add a path here.
Notes
Directory-scoped session listing is expected (sessions in other directories don't appear). The problem is specifically that Move session cannot reach a valid target directory, so there is no in-app way to move a session into a nested project.
Workaround: launch/attach with --dir /work/repos/HomeLab (or -s <sessionID>), or use the web UI.
--dir / -s on attach do work, so this is scoped to the in-app picker.
Version
opencode 1.18.30 (/usr/local/bin/opencode)
Server: opencode web --port 4096 --hostname 0.0.0.0 on Linux; sessions created via the web UI and attached to from the CLI.
This issue might be a duplicate of existing issues. Please check:
Project dirs are not being recognized, nothing is listed under /move #40200: Project dirs are not being recognized, nothing is listed under /move — similar symptom of /move not surfacing known project directories, though that report is on Windows and focuses on previously-visited dirs not appearing at all, while this issue is specifically about nested subdirectories not being reachable and the search not matching them.
Surfacing nested/sibling projects: The picker now queries sdk.client.project.list() globally and merges all registered project worktrees and directories under the "Other" section, so nested projects like /work/repos/HomeLab appear and match fuzzy search.
Path prompt on ctrl+m: Pressing ctrl+m ("new") now opens DialogPrompt to enter an arbitrary target directory path directly, while falling back to git worktree creation if left blank.
Cross-project relocation: The backend engine now allows moving sessions to arbitrary directories and across distinct projects without raising DestinationProjectMismatchError.
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.
Activity
github-actions commentedon Sep 15, 2026
This issue might be a duplicate of existing issues. Please check:
/move#40200: Project dirs are not being recognized, nothing is listed under/move— similar symptom of/movenot surfacing known project directories, though that report is on Windows and focuses on previously-visited dirs not appearing at all, while this issue is specifically about nested subdirectories not being reachable and the search not matching them.mavasbel commentedon Sep 19, 2026
Hi @jdbway, @kommander — thank you @jdbway for the detailed reproduction steps! Submitted PR #49560 to address this:
sdk.client.project.list()globally and merges all registered project worktrees and directories under the "Other" section, so nested projects like/work/repos/HomeLabappear and match fuzzy search.ctrl+m: Pressingctrl+m("new") now opensDialogPromptto enter an arbitrary target directory path directly, while falling back to git worktree creation if left blank.DestinationProjectMismatchError.thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊