Skip to content

agent image intermittently lacks jq / safeoutputs / python / apply_patch while the generated prompt prescribes them #65058

Closed as not planned

Description

@niebloomj

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

What's wrong
The generated prompt prescribes tools the agent image intermittently does not have: jq, the safeoutputs CLI, python, and apply_patch fail with "command not found" in some runs. The prompt's rawfile emission flow (jq -n ... --rawfile body ... | safeoutputs add_comment .) then cannot be used at all.

Evidence
Same-day runs alternate: one run posted a 4004-byte comment fine through the rawfile flow while other runs the same day report jq and safeoutputs not found and are forced into inline-JSON tool calls. Provisioning looks racy ("Successfully copied 88 safe-outputs files" appears in both working and failing runs).

Expected
The tools the generated prompt prescribes should be availability-guaranteed in the agent image - or the prompt should generate availability-checked fallbacks.

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

    @niebloomj provide more details about what kind of sandbox config you are using. use debug.md

  4. pelikhan commented on Oct 7, 2026

    @pelikhan
    Collaborator

    Need more details on failure.

  5. locked and limited conversation to collaborators on Oct 14, 2026
  6. unlocked this conversation on Oct 14, 2026
  7. niebloomj commented on Oct 14, 2026

    @niebloomj
    Author

    I couldn't reopen this issue with my current repository access, so I filed follow-up #68702 with the retained evidence and the exact reproduction details still needed. It links back to this issue and the original report #65046.

  8. locked and limited conversation to collaborators on Oct 14, 2026
  9. unlocked this conversation on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions