Skip to content

Preserve JSON results and diagnostics on command failure - #4574

Merged
max-sixty merged 2 commits into
mainfrom
codex/json-failure-results
Oct 22, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/json-failure-results

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

JSON callers can lose useful results or receive an unexplained failure: config show discarded some diagnostics, for-each abandoned its report on preparation errors, and remove returned before emitting completed removals when interrupted.

Keep the existing JSON schemas while restoring stderr diagnostics, handling preparation failures through the per-worktree outcome path, and emitting completed removals before propagating interruption. Later worktrees continue after ordinary preparation failures; signals still stop the batch.

Validation: 56 focused integration cases passed; all pre-commit checks, documentation builds, and doctests passed. The full local gate recorded ten failures in unchanged shell/signal/process-discovery paths before an app restart interrupted it; full CI remains the merge gate.

This was written by Codex on behalf of max-sixty

@max-sixty
max-sixty merged commit f117827 into main Oct 22, 2026
38 checks passed
@max-sixty
max-sixty deleted the codex/json-failure-results branch October 22, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants