mirror of
https://github.com/lWolvesl/claw-code.git
synced 2026-04-02 07:41:52 +08:00
Rework /permissions output into the same operator-console format used by status, config, and model so the command feels intentional and self-explanatory. Switching modes now reports previous and current state, while inspection shows the available modes and their meaning without adding fake policy logic. Constraint: Permission output must stay aligned with the real three-mode runtime policy already implemented Rejected: Add richer permission-policy previews per tool | would require more UI surface and risks overstating current policy fidelity Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep permission-mode docs in the CLI consistent with normalize_permission_mode and permission_policy behavior 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 operator UX review of /permissions flows in a live REPL