Skip to content

Send a harness's attachments to the router as notes - #61

Merged
dylanuys merged 1 commit into
stagingfrom
fix/harness-text-only-content
Nov 19, 2026
Merged

dylanuys merged 1 commit into
stagingfrom
fix/harness-text-only-content

Conversation

@dylanuys

Copy link
Copy Markdown
Contributor

What changed

When a model working in Claude Code reads an image file, the harness puts the image itself into the conversation. The router protocol carries text only, so ModelInput refused the next request with "only text request content is supported". Claude Code reported that as unrecognized_model and ended the session, losing the work done so far.

portable_request, the filter every harness request passes through, now replaces each attachment (any content part that is not text or reasoning) with a short text note saying it was left out. The session continues, and the model learns that it cannot see the file. The harness's own record of the conversation is not changed.

Validation

  • New test: a conversation holding an image is refused by ModelInput.from_inspect as it arrives, and accepted after the filter with the image replaced by the note; the original message still holds the image. It fails without the change.
  • pytest packages/yugos-evals/tests/test_harnessed.py passes (12 tests); ruff check and ruff format --check pass on the changed files.
  • Not yet verified in a live harness session.

🤖 Generated with Claude Code

Claude Code answers a Read of an image file with the image itself. The
router protocol carries text only and refused the request, and the harness
ended the session reporting an unrecognised model. The harness request
filter now replaces each attachment with a note that it was left out.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T05:31:25.617170Z d2bd87e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dylanuys
dylanuys merged commit 5a7dd48 into staging Nov 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant