Skip to content

session-list shows empty when --project-path equals current directory #15023

Closed as not planned

Description

@haoyk

Description

When executing session-list --project-path in a project directory, if the --project-path parameter is the same as the current directory, the session list shows as empty.

Important Context: D:\sourceCode\opencodetest was created inside the D:\sourceCode\InsuranceCashierTool directory (nested relationship).

Plugins

No response

OpenCode version

No response

Steps to reproduce

Reproduction Steps

  1. D:\sourceCode\opencodetest is a subdirectory of D:\sourceCode\InsuranceCashierTool
  2. Start opencode in D:\sourceCode\opencodetest
  3. Execute pwd to confirm current directory: /d/sourceCode/opencodetest
  4. Execute session-list --project-path "D:/sourceCode/opencodetest"
  5. Result: Shows empty (No sessions found)

Expected Behavior

Should be able to see the project's session list, including ses_3b5bfdd77ffe0V5U3gZvMjMDV2

Workaround

Works normally from other directories:

  • Execute in D:\sourceCode\InsuranceCashierTool: session-list --project-path "D:/sourceCode/opencodetest" → ✅ Shows correctly
  • Execute in D:\sourceCode\opencodetest: session-list --project-path "D:/sourceCode/opencodetest" → ❌ Shows empty

Additional Info

  • CLI tool session_list (without slash) works normally from any directory
  • /sessions slash command also cannot show sessions
  • Using /resume <session_id> directly can continue the session

Session ID: ses_3b5bfdd77ffe0V5U3gZvMjMDV2
Project Path: D:\sourceCode\opencodetest
OS: Windows

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Feb 25, 2026
  2. github-actions commented on Feb 25, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  3. bewa1t commented on Apr 22, 2026

    @bewa1t

    i guess this is true for mac as well

  4. assigned and unassigned on Apr 26, 2026
  5. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  6. ryanseddon commented on May 7, 2026

    @ryanseddon

    I'm getting this too in a directory within opencode doing ctrl+x l I get an empty list but running opencode session list I can see all the sessions an once I do opencode --session id it will then correctly appear in the session list model inside opencode.

  7. ryanseddon commented on May 7, 2026

    @ryanseddon

    Ok figured out whats going on in this project of mine, the sessions are older than 30 days so the tui dialog filters them, to me if I jump into a project I don't touch that much it would be useful to see the last n session even if they're older than 30 days.

  8. github-actions commented on Jul 8, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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