You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression: /sessions command no longer filters by current working directory #19340
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.
Activity
github-actions commentedon Mar 26, 2026
This issue might be a duplicate of existing issues. Please check:
jimicze commentedon Mar 26, 2026
for i see no sessions in working directory, and all see on one parent directory
github-actions commentedon Jul 5, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.