Bug
staleness does not accept a workspace path as a positional argument, unlike every other command. Passing a path causes it to print usage and exit.
codelens staleness /path/to/workspace
# → prints usage, exits — workspace arg not recognized
Other commands accept workspace as an optional positional: codelens trace <name> [workspace], codelens scan [workspace], etc. staleness is inconsistent.
Fix
Add workspace as an optional positional argument to staleness in commands/staleness.py, consistent with the pattern used by all other commands. Pass it through to the registry/DB path resolution so auto-detect is skipped when workspace is explicit.
Definition of Done
codelens staleness /path/to/workspace works without error
codelens staleness (no args) still auto-detects as before
- Consistent with how other commands handle the optional
workspace positional
Labels
type: bug-fix exec: parallel
Bug
stalenessdoes not accept a workspace path as a positional argument, unlike every other command. Passing a path causes it to print usage and exit.codelens staleness /path/to/workspace # → prints usage, exits — workspace arg not recognizedOther commands accept
workspaceas an optional positional:codelens trace <name> [workspace],codelens scan [workspace], etc.stalenessis inconsistent.Fix
Add
workspaceas an optional positional argument tostalenessincommands/staleness.py, consistent with the pattern used by all other commands. Pass it through to the registry/DB path resolution so auto-detect is skipped when workspace is explicit.Definition of Done
codelens staleness /path/to/workspaceworks without errorcodelens staleness(no args) still auto-detects as beforeworkspacepositionalLabels
type: bug-fixexec: parallel