Skip to content

fix(nooa_agent): send an image a cell showed as a Responses part - #6867

Draft
giuliolovisotto wants to merge 1 commit into
glovisotto/nooa-task-toolsfrom
glovisotto/nooa-image-parts
Draft

giuliolovisotto wants to merge 1 commit into
glovisotto/nooa-task-toolsfrom
glovisotto/nooa-image-parts

Conversation

@giuliolovisotto

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes NOOA rollouts that fail as soon as the model looks at a picture.

NOOA attaches what a CodeAct cell showed the model (show(image)) to the cell's output as Chat Completions content parts (text, image_url). The adapter passed that user message on unchanged, the Responses request did not validate (NeMoGymResponseCreateParamsNonStreaming), and after NOOA's ten retries the rollout failed with "LLM API error after 10 retries". Any task where the model views an image ended that way.

A user message's text and image_url parts are now sent as input_text and input_image. Other parts are passed on as before.

No issue linked: the failure is described here.

Validation

Run on macOS, in the agent's own environment:

  • pytest responses_api_agents/nooa_agent/tests: 795 passed, 10 skipped.
  • New test in tests/test_runner.py: a real CodeAct run whose cell shows a 1-pixel PNG; the second model request carries an input_text and an input_image part and the run completes. Without the fix the same run ends in the validation error above.

Rollouts

Terminal-Bench 4.1 on the Harbor environment server: before the fix cad-model and layout-config-recreation2 failed with the validation error within the first half hour of a 63-task run. With the fix cad-model is graded after the model was shown images. Full 63-task runs are in progress.

Compatibility and benchmark impact

None for rollouts without media. Rollouts where the model views an image no longer fail in the adapter.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable).
  • Documentation added or updated, or N/A with justification.
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format checks pass). Only ruff check and ruff format --check were run on the changed packages.
  • New source files include the required Apache-2.0 SPDX header.
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

🤖 Generated with Claude Code

@giuliolovisotto giuliolovisotto added bug Something isn't working area:agent Agent harnesses and Responses API agent behavior risk:low Autobot PR risk: low labels Nov 27, 2026
@copy-pr-bot

copy-pr-bot Bot commented Nov 27, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added risk:mid Autobot PR risk: mid and removed risk:low Autobot PR risk: low labels Nov 27, 2026
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/nooa-image-parts branch from f3b1636 to a95d0c7 Compare November 30, 2026 10:53
@svcnvidia-nemo-ci svcnvidia-nemo-ci added risk:low Autobot PR risk: low and removed risk:mid Autobot PR risk: mid labels Nov 30, 2026
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/nooa-image-parts branch from a95d0c7 to 3f06306 Compare November 30, 2026 11:47
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/nooa-image-parts branch from 3f06306 to 5c005d5 Compare November 30, 2026 11:49
NOOA attaches what a CodeAct cell showed the model (`show(image)`) to the
cell's output as Chat Completions content parts (`text`, `image_url`). The
adapter passed that user message on unchanged, the Responses request did
not validate, and after NOOA's ten retries the rollout failed. Any task
where the model looks at a picture ended that way.

A user message's `text` and `image_url` parts are now sent as `input_text`
and `input_image`. Other parts are passed on as before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Giulio Lovisotto <glovisotto@nvidia.com>
@giuliolovisotto
giuliolovisotto force-pushed the glovisotto/nooa-image-parts branch from 5c005d5 to 76c8893 Compare November 30, 2026 13:52

This branch has not been deployed

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

Labels

area:agent Agent harnesses and Responses API agent behavior bug Something isn't working risk:low Autobot PR risk: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants