anomalyco / anomalyco/opencode
TUI "Move session" picker can't reach nested project directories; Search returns "No results found"
Open
@kommander is already working on this.
Since Sep 15, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Summary
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.
/workand/work/repos/HomeLab, where/work/repos/HomeLabis a registered project — it appears in the server'sproject/project_directorytables and inGET /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
/workand/work/repos./work/repos/HomeLabis not listed. - Type
HomeLabin 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/-sonattachdo 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.0on Linux; sessions created via the web UI and attached to from the CLI.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.