mirror of
https://github.com/zhukunpenglinyutong/jetbrains-cc-gui.git
synced 2026-10-31 02:41:28 +08:00
The PreToolUse hook read the parent's cached mode for every call, so a worker running under the native auto reviewer got forced to "ask" as soon as the parent switched modes, and a worker's EnterPlanMode/ExitPlanMode mutated the parent Query or opened a parent plan-approval dialog. Recognized permission_mode values from the hook input now win over the parent state for worker calls; worker plan transitions, plan-file ownership and the SDK-only dontAsk/bubble modes yield to the native permission flow, and missing or unknown modes still fall back to the parent policy.