Repository navigation
bench: count textEmissions from session transcript, not stdout - #317
Merged
Merged
Conversation
Process stdout is lost when a timed-out task is killed mid-emission.
Observed on T17 (27B full run): the session transcript ends with a
plain-text call_<id>{...} tool-call emission but stdout never carried
it, so textEmit underreported 1 -> 0 and the degradation was invisible
in the summary. Prefer the transcript (copySessionTranscript now
returns the copied path); fall back to stdout counting for harnesses
without transcripts. Verified: T17 transcript counts 1, stdout counted 0.
Co-Authored-By: Claude Code <[email protected]>
Merged
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.
Problem
When a bench task hits the 600 s cap, the runner kills the process and buffered stdout is lost. T17 (27B full run) ended with a plain-text
call_<id>{...}tool-call emission in its session transcript, buttextEmitreported 0 — the degradation metric missed exactly the case it exists for.Fix
copySessionTranscriptnow returns the copied transcript path; when present,textEmissionsis counted from assistant text blocks in the transcript instead of stdout. Falls back to stdout counting for harnesses without transcripts (goose/opencode unchanged).Validation
tsc --noEmit --strictclean; Biome rule set identical to base.🤖 Generated with Claude Code