Dispatch pre-checks ignore --json #109

closed cmc opened this on 2026-09-03 05:14 UTC · cli control · milestone v1.10.0

Discussion

cmc 2026-09-03 05:14 UTC

Scope, SSHOnly, read-only and pending refusals (internal/control/control.go:86-98) run before --json is stripped (:99-107), so a scripted caller gets plain text on stderr instead of an envelope exactly when it needs to parse the error.

Remedy: strip --json first.

closed by commit ffcb3af61a by cmc: control: strip --json before the dispatcher's refusals

2026-09-04 00:10 UTC