Skip to content

fix(runner): accept Claude Code 2.1.270 JSON event array - #1

Merged
AojdevStudio merged 4 commits into
mainfrom
fix/claude-json-array
Sep 13, 2026
Merged

AojdevStudio merged 4 commits into
mainfrom
fix/claude-json-array

Conversation

@AojdevStudio

Copy link
Copy Markdown
Owner

Claude Code 2.1.270 changed --output-format json from a single result object to an array of system, assistant, and result events. The vendored runner's parseClaude still required a bare object and threw "claude emitted a non-object result", so every native-Claude lane launched from a Codex parent was recorded as malformed-output even though the model answered. That blocks /setup-pstack from ever writing a Codex sheet.

The parser now takes the terminal result event from an array and still accepts the legacy object. A fixture captured from the real CLI backs the new test; the old test suite still passes (52 tests across the runner).

Proven live on macOS with Claude Code 2.1.270: pstack-runner --parent codex --provider claude --model fable --effort medium and --model opus --effort xhigh both return status: complete with a verified reportedModel.

Fork-internal PR to hold the fix until it is submitted upstream to ericlitman/open-pstack.

Changes made by Claude Fable 5.1 in Claude Code.

ericlitman and others added 4 commits September 8, 2026 17:08
Open Pstack 1.4.0 syncs Cursor pstack 0.15.0 (71ed0d1). How's critique mode and the how-critics role are retired; principle-attack-the-premise and principle-test-behavior-not-implementation are added with narrow local corrections recorded in CHANGES.md. Upstream's density and punctuation passes are applied on top of the Claude Code and Codex adaptations, with the exact logo and verbatim upstream README. Closes ericlitman#61.
…ry merges (ericlitman#62)

The Gavel panel review of ericlitman#60 found the upstream merge lever could overwrite work done after the audit; it now refuses to run unless HEAD is the audited commit and mapped paths are clean, reports excluded and diverged rows instead of applying them, keeps the executable bit, uses a temporary directory for merge inputs, skips the status check when nothing is mapped, and reports git merge-file failures on binaries instead of chmodding. scripts/upstream-merge-probe.py reproduces each case plus the real 0.15.0 range. Findings about repository shapes this tree does not produce were waived on the head with their disproofs.
…t-format json

Claude Code 2.1.270 emits --output-format json as an array of system/assistant/result events. parseClaude required a bare result object and threw "claude emitted a non-object result", so every native-Claude probe from a Codex parent was marked malformed-output even though the model answered. Read the terminal result event from an array; keep accepting the legacy object. Fixture captured from the real CLI.
@AojdevStudio
AojdevStudio merged commit 53dc27d into main Sep 13, 2026
@AojdevStudio
AojdevStudio deleted the fix/claude-json-array branch September 13, 2026 04:19
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