feat(claudbg-x45o): sessions list scopes to current project by default
Add --scope=project|user flag to `sessions list` (default: project). When project scope is active, only sessions whose project_path matches the current working directory are shown. Use --scope=user to see all. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main
parent
0c6ecf1165
commit
f45a0dfd87
@ -1,10 +1,18 @@
|
||||
---
|
||||
# claudbg-x45o
|
||||
title: 'sessions list: scope to current project by default with --scope flag'
|
||||
status: todo
|
||||
status: completed
|
||||
type: feature
|
||||
priority: normal
|
||||
created_at: 2026-03-31T23:44:50Z
|
||||
updated_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).
|
||||
|
||||
Loading…
Reference in New Issue