Skip to content

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

Closed as not planned

Description

@jdbway

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.

Activity

  1. github-actions commented on Sep 15, 2026

    @github-actions
    Contributor

    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.
  2. mavasbel commented on Sep 19, 2026

    @mavasbel

    Hi @jdbway, @kommander — thank you @jdbway for the detailed reproduction steps! Submitted PR #49560 to address this:

    1. 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.
    2. 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.
    3. Cross-project relocation: The backend engine now allows moving sessions to arbitrary directories and across distinct projects without raising DestinationProjectMismatchError.
  3. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    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 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions