Skip to content

Run coding-harness sessions through the router reliably - #62

Merged
dylanuys merged 11 commits into
mainfrom
staging
Nov 20, 2026
Merged

dylanuys merged 11 commits into
mainfrom
staging

Conversation

@dylanuys

Copy link
Copy Markdown
Contributor

Promotes the coding-harness session fixes from staging (#57, #58, #59, #60, #61).

  • Harness sessions run to the run's own limits, and OpenCode is given a current model.
  • A turn the harness replays gets its reasoning state back, including when the harness rewrote the call's arguments.
  • Provider-run tools are kept out of harness sessions, and a request whose only tools were provider-run is answered without a tool.
  • A harness's attachments reach the router as notes.

No other changes: staging is exactly these eleven commits ahead of main.

🤖 Generated with Claude Code

dylanuys and others added 11 commits November 18, 2026 02:32
…ent model

A harnessed question kept its task's message limit, which sizes the native
agent's loop: thirty messages ended a harness session after about a dozen
turns. The run's call, cost and time limits bound a harness instead.

OpenCode resolves the model it formats requests as against its release's own
catalog. The inspect-swe default is no longer listed by current releases, so
every OpenCode session failed before its first request.
A coding harness rebuilds each request from its own transcript, so its
assistant turns reached the router without the provider's reasoning state
and an empty reply came back as placeholder text. The router model now
recognises a replayed tool-calling turn by its exact tool calls and sends
the reply it came from, as the task's own agent would.
Let harness sessions run to the run's limits and keep their reasoning state
A harness rewrites its own record of a tool call, such as filling in an
argument's default or trimming a command, so a replayed turn rarely
carried the reply's exact arguments and kept losing its reasoning state.
A turn is now matched to its reply by call IDs and functions, and is sent
as the model wrote it.
…calls

Recognise a replayed turn whose arguments the harness rewrote
Codex CLI declares web search as a tool its provider runs, and Claude
Code's WebSearch tool requests one in a call of its own. A provider that
offers it searched the live web from a sandbox that has no network. The
harness request filter now drops tools the provider would run itself; the
harness's own tools are untouched.
Keep provider-run tools out of harness sessions
…er-run

A request that required some tool (tool_choice "any") and offered only
provider-run tools kept its required choice after they were dropped, and
the router protocol refuses a required choice with no tools. It is now
sent with tool_choice "none", as a request that named a dropped tool
already was.
Answer without a tool when a harness request's only tools were provider-run
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.
Send a harness's attachments to the router as notes
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T06:01:19.791306Z 5a7dd48 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 1644773 into main Nov 20, 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