Repository navigation
feat: enable image attachments in RLM sessions - #3221
hubert-marek wants to merge 6 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 138f32e. Configure here.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Adds opt-in image forwarding for RLM sessions while leaving existing defaults unchanged. The change is limited to session policy configuration, with unit coverage for default omission and explicit enablement. Notes:
You can add or adjust custom eligibility rules. Learn more. |
| assert _sent_policy(config, runtime_config)["network_guidance"] is value | ||
|
|
||
|
|
||
| def test_rlm_image_input_is_opt_in(): |

Summary
vision = trueon the RLM harness and forward it in the execution policy. Default sessions omit the field and continue to use the existing nano-rlm pin.Validation
attach_image("/tmp/first.png", "/tmp/second.png"), received both original PNGs in order on that tool response with the matching tool call ID, and answeredyellow blue green redon its very next turn. The attachment was the sole tool call. Two turns, 91 completion tokens, reward 1.0. The CI model alias returned 403 for this account, so the successful run used the HT endpoint.Note
Add opt-in vision support to
RLMHarnessfor image attachmentsvisionfield toRLMHarnessConfigin harness.py, defaulting tofalse. When enabled, the RLM policy knobs includevision: true; when disabled, the key is omitted.ReadImageTaskfixture in read_image.py that writes color-swatch PNGs to the workspace and rewards 1.0 only when the agent reads the images via one IPython call and names all colors in order.visionkey is only inserted when enabled. Enabling it requires a nano-rlm version that supports the vision execution policy.Changes since #3221 opened
Macroscope summarized aedd96f.
Note
Low Risk
Default-off config with the field omitted from the policy unless enabled; no change to existing RLM sessions.
Overview
Adds an opt-in
visionflag onRLMHarnessConfig(defaultfalse). When enabled, the RLM runtime execution policy includesvision: trueso IPython/MCP images can reach a vision-capable nano-rlm; when disabled, the key stays off the wire so existing sessions behave unchanged.Unit coverage asserts the same opt-in pattern used for other policy knobs: default policy omits
vision, andvision=Truesets it on the sent policy.Reviewed by Cursor Bugbot for commit ece39a9. Bugbot is set up for automated code reviews on this repo. Configure here.