mirror of
https://github.com/lWolvesl/claw-code.git
synced 2026-04-02 07:41:52 +08:00
Extend /status with project root and git branch details derived from the local repository so the report feels closer to a real Claude Code session dashboard. This adds high-value workspace context without inventing any persisted metadata the runtime does not actually have. Constraint: Status metadata must be computed from the current working tree at runtime and tolerate non-git directories Rejected: Persist branch/root into session files first | a local runtime derivation is smaller and immediately useful without changing session format Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep status context opportunistic and degrade cleanly to unknown when git metadata is unavailable Tested: cargo fmt --manifest-path ./rust/Cargo.toml --all; cargo clippy --manifest-path ./rust/Cargo.toml --workspace --all-targets -- -D warnings; cargo test --manifest-path ./rust/Cargo.toml --workspace Not-tested: Manual non-git-directory /status run