--- # claudbg-x45o title: 'sessions list: scope to current project by default with --scope flag' status: completed type: feature priority: normal created_at: 2026-03-31T23:44:50Z updated_at: 2026-04-01T05:58:09Z --- When run inside a project directory, `claudbg sessions` should only list sessions for that project (similar to how `claude /continue` lists sessions for that project). Override with `--scope=[user|project|local]` — default is 'project'. ## Summary of Changes Added `SessionScope` enum (`Project` | `User`) to `src/cli.rs`. Added `--scope` flag to `SessionsCmd::List` with default `project`. Updated `sessions::list()` signature to accept `scope: SessionScope`. When scope is `Project`, resolves the current working directory and filters raw rows to only include sessions whose `project_path` exactly matches the CWD. Scope `User` shows all sessions (previous behavior).