Skip to content

[Workspaces/UX] Session list silently filtered when inside workspace context #27286

@jamesmurdza

Description

@jamesmurdza

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:

  1. That filtering is active
  2. That this toggle exists
  3. 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

  1. Start OpenCode locally (no workspace) - can see all sessions
  2. Create a new workspace via /warp
  3. Open /sessions list
  4. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions