Repository navigation
fix(runner): accept Claude Code 2.1.270 JSON event array - #1
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claude Code 2.1.270 changed
--output-format jsonfrom a single result object to an array ofsystem,assistant, andresultevents. The vendored runner'sparseClaudestill required a bare object and threw "claude emitted a non-object result", so every native-Claude lane launched from a Codex parent was recorded asmalformed-outputeven though the model answered. That blocks/setup-pstackfrom ever writing a Codex sheet.The parser now takes the terminal
resultevent 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 mediumand--model opus --effort xhighboth returnstatus: completewith a verifiedreportedModel.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.