anomalyco / anomalyco/opencode

TUI "Move session" picker can't reach nested project directories; Search returns "No results found"

Open
#49,212 2 comments 0 reactions 1 assignee View on GitHub

@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

  1. 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.
  2. Attach a TUI whose session lives in /work.
  3. Run /move (command palette: Move session, desc. "Move to another project dir").
  4. The picker lists only /work and /work/repos. /work/repos/HomeLab is not listed.
  5. Type HomeLab in the Search box → "No results found".
  6. 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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.