Repository navigation
feat(agents): support prompt images in Hermes, OpenClaw and Codex - #5960
Conversation
Signed-off-by: yaoyu-33 <[email protected]>
…e limits normalize_hermes_messages indexed image_url as an object, so a user message holding a bare-URL image_url part, a form Hermes itself reads, raised TypeError and failed the conversation export after a completed run. It now reads both image_url forms and Responses input_image parts, and defaults a missing detail. The README now says where images go, what returns 422, that a vision model is needed, that the response output keeps text while the session conversation keeps images, that Hermes counts base64 toward its preflight compression estimate, and what is not qualified. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test 5f031eb |
Signed-off-by: yaoyu-33 <[email protected]>
…pture rule Hermes passes prompt images as ordered Chat Completions image_url parts without staging files; give it its own row and describe that path beside the staged one. With #5833 merged, token capture keeps OpenCode's step-limit note chained, so opencode_agent no longer refuses agent.build.steps under token capture. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE
Two RISK findings remain: non-ASCII malformed base64 becomes a server error across the new image-input paths, and OpenClaw skips image-delivery validation for output-limit replies that remain gradable.
I reviewed all 19 changed files and traced the affected media, lifecycle, conversation-export, and verification paths. This was a static review; I couldn't execute tests or independently reproduce the author-reported runtime smokes.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test 4eb7519 |
Signed-off-by: yaoyu-33 <[email protected]>
yfw
left a comment
There was a problem hiding this comment.
SHIP WITH CARE. The PR is not ready to merge as is. Please fix the OpenClaw resize first, and take the Hermes detail and Codex image-count fixes in the same push. The other comments are smaller.
This PR brings prompt images to three more harnesses, with one shared set of image rules in MediaFile. Image staging runs inside the close fence and the activation deadline, and exported conversations keep the images. The real-model smoke covers each harness with five cases. Both automated-review findings are fixed with tests: the non-ASCII base64 case in all three harnesses, and the output-limit image case in OpenClaw.
The test jobs did not run on head 648d58b. Only Lint, DCO, copyright, secrets and lock-freshness ran. Please post the /ok to test command with the full head SHA again, as for 4eb7519. At 4eb7519, every test job that ran passed. DCO passes, and the PR has no merge conflict with main.
The adapter table in #5868 still lists Codex and OpenClaw as rejecting images, and whichever PR merges second can update it.
Generated by Claude Code
Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test 3210be7 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43807436356 |
Add base64 data-URI prompt images to Hermes, OpenClaw and Codex, retaining image content in exported conversations. These adapters previously rejected images or flattened them into text. No separate issue is needed for this focused harness extension.
--imagearguments.5f031eb22: exports accept object/bare-URL Chat image parts and Responses image parts.Compatibility and evaluation effects:
image_input: truecan also declare image capability without prompt attachments. Tool/MCP image handling and training/token capture are outside this qualification.Validation on the workstation, Python 3.13.14:
1,544 passed, 24 subtests passed, 7 optional runtime tests skipped; full pre-commit passed. The suite uses the locked Hermes component environment with core/sandbox dependencies; actual pinned Codex/OpenClaw CLIs were exercised on the compute cluster. Seven new OpenClaw/Codex positive regressions fail against the prior adapter code and pass on final code; five Hermes regressions were similarly checked earlier. Final formatting is AST-equivalent; the positive checks also pass after formatting. Independent source review and
git diff --checkpassed.Real-model smoke on the compute cluster used Qwen3-VL-8B-Instruct, vLLM 0.20.0 eager, pinned Hermes 26bb847a / OpenClaw 2026.6.11 / Codex 0.144.4, agent-owned Enroot sandboxes, and stock Gym evaluation/session/verifier flow at concurrency 1:
Codex answered 4 instead of 3 in the multiple and large cases. Captures confirm image delivery, native resizing and healthy calls; these are retained accuracy misses, not reported as successful answers. All harnesses reject remote URLs with 422 and zero model calls, then recover on text. Exported native images match captured model images. Codex's staged hashes were independently captured; the OpenClaw process watcher missed its runtime process, so no independent on-disk/config snapshot is claimed there.
Smoke provenance was checked after the concurrent main/review merge: relevant shared media/lifecycle/Enroot/model code is byte-identical; final OpenClaw runtime is AST-equivalent; Codex differs only by the unseeded local-path 422 guard. The Hermes follow-up changes export normalization, not its smoked model-request path. An initial OpenClaw attempt was stopped for a unit-test-discovered image-count guard defect; the corrected attempt above ran to completion. All task servers, sandboxes and cluster allocations were cleaned up.
Scope limits: PNG prompt inputs, evaluation only; no blanket qualification of all supported formats, borrowed sandboxes, other providers, concurrency, benchmark accuracy, or training.
Review fixes on November 12 (
4eb75192f, after merging main at33a498938):Follow-up validation on the workstation with Python 3.13.14 and root-locked core/sandbox dependencies plus the pinned Hermes runtime:
1,566 passed, 24 subtests passed, 7 optional runtime tests skipped; full pre-commit passed. The added regressions expose six failures against the pre-fix source (five malformed-base64 paths and OpenClaw's missing-image output-limit path). All 46 focused regression cases pass on the final formatted source. Pre-commit made one AST-equivalent import-format change; the final committed files match the workstation source.
The shared-core fix selects full CI coverage, including the eight-shard server suite. No new real-model smoke was run in this follow-up; the smoke evidence above describes the earlier qualified revisions and runtime versions, including Codex 0.144.4, rather than a new qualification of the merged head.