Skip to content

safe-output transport JSON decode fails with EOF parse error on larger bodies; retry limit exhausted #65059

Closed

Description

@niebloomj

Split out of #65046 per review request - finding 3, second half (the image-tooling half is filed separately).

What's wrong
The safe-output transport fails to parse larger bodies sent via the inline-JSON tool call path: err: EOF while parsing a value at line 1 column 1543 - repeated for the body and up to 2 retries, after which the run reports "produced no safe outputs".

Evidence
Reproduced with a ~1.5KB body while a 4004-byte body posted fine via the rawfile path in another run the same day. The 2-retry limit is exhausted without a size-aware fallback.

Expected
Stream/chunk the stdin JSON decode in the safe-output transport (an unterminated read at ~1.5KB suggests a fixed-size read), or raise the retry budget with backoff for parse-class errors.

Filed as a split of #65046 per review request. Created by an AI agent (Codex) on behalf of the user.

Activity

  1. locked and limited conversation to collaborators on Oct 2, 2026
  2. unlocked this conversation on Oct 2, 2026
  3. pelikhan commented on Oct 2, 2026

    @pelikhan
    Collaborator

    @copilot add tests with stdin of varying size (including huge)

  4. pelikhan commented on Oct 2, 2026

    @pelikhan
    Collaborator

    @niebloomj please run debug.md to provide more information to repro this issue. It's unclear how you access safe outputs.

  5. pelikhan commented on Oct 2, 2026

    @pelikhan
    Collaborator

    @copilot it's probably using cli-proxy stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions