ultraworkers-claw-code/rust/crates/rusty-claude-cli/src
Yeachan-Heo e102af6ef3 Honor project permission defaults when CLI has no override
Runtime config already parsed merged permissionMode/defaultMode values, but the CLI defaulted straight from RUSTY_CLAUDE_PERMISSION_MODE to danger-full-access. This wires the default permission resolver through the merged runtime config so project/local settings take effect when no env override is present, while keeping env precedence and locking the behavior with regression tests.

Constraint: Must preserve explicit env override precedence over project config
Rejected: Thread permission source state through every CLI action | unnecessary refactor for a focused parity fix
Confidence: high
Scope-risk: narrow
Directive: Keep config-derived defaults behind explicit CLI/env overrides unless the upstream precedence contract changes
Tested: cargo test -p rusty-claude-cli permission_mode -- --nocapture
Tested: cargo test -p rusty-claude-cli defaults_to_repl_when_no_args -- --nocapture
Not-tested: interactive REPL/manual /permissions flows
2026-04-02 10:02:26 +00:00
..
app.rs test: cover new CLI slash command handlers 2026-04-02 06:05:24 +00:00
args.rs fix: auto compaction threshold default 200k tokens 2026-04-01 03:55:00 +00:00
init.rs fix: auto compaction threshold default 200k tokens 2026-04-01 03:55:00 +00:00
input.rs Reduce REPL overhead for orchestration-heavy workflows 2026-04-02 07:19:14 +00:00
main.rs Honor project permission defaults when CLI has no override 2026-04-02 10:02:26 +00:00
render.rs wip: plugins progress 2026-04-01 07:09:29 +00:00