GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Regression: /sessions command no longer filters by current working directory · Issue #19340 · anomalyco/opencode

Regression: /sessions command no longer filters by current working directory #19340

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Regression: /sessions command no longer filters by current working directory#19340
Copy link
Assignees
rekram1-node

Description

@jimicze
jimicze
opened on Mar 26, 2026
Issue body actions

Description

Description
The /sessions command no longer filters sessions by the current working directory/project path. Previously, sessions were scoped to the directory where they were created.

Current Behavior
/sessions shows all sessions regardless of the directory they were created in.

Expected Behavior
/sessions should filter sessions by the current working directory, as it did previously.

Root Cause
In packages/opencode/src/cli/cmd/session.ts:93, Session.list() is called without the directory parameter:
const sessions = [...Session.list({ roots: true, limit: args.maxCount })]
The Session.list() function supports a directory parameter, and sessions store directory in the database, but the CLI/TUI doesn't pass it.

Suggested Fix
const sessions = [...Session.list({ roots: true, limit: args.maxCount, directory: process.cwd() })]

Plugins

No response

OpenCode version

1.2.27

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

macOS 15.2

Terminal

Ghostty

Activity

  1. jimicze
    added
    bugSomething isn't working
    on Mar 26, 2026
  2. github-actions
    assigned
    rekram1-node
    on Mar 26, 2026
  3. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 26, 2026
  4. github-actions commented on Mar 26, 2026

    @github-actions
    github-actionsBot
    on Mar 26, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Sessions are now mixed with home directory session list, disregarding which directory you're in #3551: Sessions are mixed across directories — same symptom of /sessions not scoping to current working directory
    • session list is showing all sessions not only the ones scopes to the curent dir #8836: Session list showing all sessions instead of only those scoped to current directory
    • The sessions list seems to show all history, not the sessions history of the working directory #6098: Sessions list shows all history instead of working directory history
  5. jimicze commented on Mar 26, 2026

    @jimicze
    jimicze
    on Mar 26, 2026
    Author
    More actions

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

    • Sessions are now mixed with home directory session list, disregarding which directory you're in #3551: Sessions are mixed across directories — same symptom of /sessions not scoping to current working directory
    • session list is showing all sessions not only the ones scopes to the curent dir #8836: Session list showing all sessions instead of only those scoped to current directory
    • The sessions list seems to show all history, not the sessions history of the working directory #6098: Sessions list shows all history instead of working directory history

    for i see no sessions in working directory, and all see on one parent directory

  6. thdxr
    removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  7. github-actions commented on Jul 5, 2026

    @github-actions
    github-actionsBot
    on Jul 5, 2026 – with GitHub Actions
    Contributor
    More actions

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

  8. github-actions
    closed this as not plannedon Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.