Description
Description
When inside a workspace context, the /sessions list is automatically filtered to only show sessions belonging to that workspace. This filtering happens silently with no visual indication, causing users to lose track of sessions they know exist.
While a toggle command exists in the command palette (app.toggle.session_directory_filter), users don't know:
- That filtering is active
- That this toggle exists
- How to find it
Suggested Fixes
Option A: Add visual indicator when filtering is active
In the session list dialog, show something like:
Sessions (filtered to current workspace) [Press X to show all]
Option B: Add "Show all sessions" option in session list
Location: packages/opencode/src/cli/cmd/tui/component/dialog-session-list.tsx
Add an action to the session list dialog:
{
command: "session.show_all",
title: "show all",
onTrigger: () => {
kv.set("session_directory_filter_enabled", false)
sync.session.refresh()
},
}
Option C: Don't filter by default
Change the default from true to false:
if (!kv.get("session_directory_filter_enabled", false)) return { scope: "project" }
Workaround
Open the command palette and search for "session directory filter" to toggle filtering off.
Context
This issue was identified during development of the Daytona OpenCode plugin: daytonaio/daytona#4504
Plugins
No response
OpenCode version
1.14.48
Steps to reproduce
- Start OpenCode locally (no workspace) - can see all sessions
- Create a new workspace via
/warp
- Open
/sessions list
- Result: Only sessions from the current workspace are shown, with no indication that filtering is active
Screenshot and/or share link
No response
Operating System
Ubuntu 24.04
Terminal
No response
Description
Description
When inside a workspace context, the
/sessionslist is automatically filtered to only show sessions belonging to that workspace. This filtering happens silently with no visual indication, causing users to lose track of sessions they know exist.While a toggle command exists in the command palette (
app.toggle.session_directory_filter), users don't know:Suggested Fixes
Option A: Add visual indicator when filtering is active
In the session list dialog, show something like:
Option B: Add "Show all sessions" option in session list
Location:
packages/opencode/src/cli/cmd/tui/component/dialog-session-list.tsxAdd an action to the session list dialog:
Option C: Don't filter by default
Change the default from
truetofalse:Workaround
Open the command palette and search for "session directory filter" to toggle filtering off.
Context
This issue was identified during development of the Daytona OpenCode plugin: daytonaio/daytona#4504
Plugins
No response
OpenCode version
1.14.48
Steps to reproduce
/warp/sessionslistScreenshot and/or share link
No response
Operating System
Ubuntu 24.04
Terminal
No response