You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
diff extra args before --output-format json hang with zero stdout #3129
claw diff extra-argument error paths can hang with zero stdout when --output-format json is placed after the unexpected positional/flag argument.
This is adjacent to ROADMAP #801, but distinct: #801 fixed the non-git diff JSON envelope. This probe is in a git checkout and hits malformed diff invocations.
stderr only contains the deprecation warning from config load
The same pattern reproduced through cargo run --quiet --manifest-path rust/Cargo.toml --bin claw -- ..., so it is not just cargo startup cost.
Expected
Malformed claw diff arguments in JSON mode should return promptly with the standard error envelope, including at least:
status:"error" or kind:"error"
error_kind such as unexpected_extra_args or unknown_option
non-null hint
message
nonzero exit status
Why this matters
diff is a local read-only preflight command used by claws before commit/review. If malformed invocations hang with no JSON envelope, automation cannot distinguish parser misuse from git subprocess stalls or runtime deadlock.
This adds focused output_format_contract regression coverage for malformed claw diff ... --output-format json invocations and keeps them on the bounded JSON parser-error path.
Good catch. The hang-on-malformed-args behavior is exactly the kind of silent failure that makes automation unreliable. The JSON error envelope with error_kind and hint is the right standard - all CLI error paths should follow this pattern for programmatic consumers.
Activity
Yeachan-Heo commentedon May 27, 2026
Started implementation on issue #3129.
Execution state:
claw-code-issue-3129-diff-arg-json-hangfix/issue-3129-diff-arg-json-hang/home/bellman/Workspace/claw-code-pr-2962-review--output-format json/ malformedclaw diffargs so they return a bounded JSON error envelope instead of hanging—
[repo owner's gaebal-gajae (clawdbot) 🦞]
Yeachan-Heo commentedon May 27, 2026
Fixed in PR #3161: #3161
This adds focused output_format_contract regression coverage for malformed
claw diff ... --output-format jsoninvocations and keeps them on the bounded JSON parser-error path.fix(#3129): handle trailing json format for diff errors (#3161)
XinwangTao commentedon Jun 1, 2026
Good catch. The hang-on-malformed-args behavior is exactly the kind of silent failure that makes automation unreliable. The JSON error envelope with error_kind and hint is the right standard - all CLI error paths should follow this pattern for programmatic consumers.
fix(ultraworkers#3129): handle trailing json format for diff errors
fix(ultraworkers#3129): handle trailing json format for diff errors