You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: OpenCode Go native Responses path leaks undeclared apply_patch and shows aborted #1699
OpenCodex 2.17.0 can leak an undeclared top-level apply_patch function call through the native OpenAI Responses passthrough path when using OpenCode Go. Codex App then displays aborted, while the target file is unchanged.
Expected behavior: an undeclared routed tool should fail closed with an explicit compatibility error before reaching the Codex executor. The supported editing path should remain exec -> tools.apply_patch(...).
This is related to #1544, #1576, and #1623, but the relevant distinction is that this reproduction uses the openai-responses adapter path.
Reproduction
Start OpenCodex on port 10100.
Use exec -> tools.apply_patch(...) to create a temporary file containing v1.
Invoke top-level apply_patch with a patch changing v1 to v2.
Observe that Codex App displays aborted.
Check the file: it remains v1; no content or mtime change is observed.
Run the equivalent patch through exec -> tools.apply_patch(...):
an intentionally incorrect expected line returns a real apply_patch verification failed error;
the correct v1 -> v3 patch succeeds.
The request-visible tool catalog contained exec, wait, and request_user_input, but no top-level apply_patch schema. The session nevertheless received a function_call named apply_patch.
Version
OpenCodex 2.17.0
Operating system
macOS 27.0, Apple Silicon
Provider and model
Provider: opencode-go
Model: deepseek-v4-flash
At the time of reproduction, the provider default was openai-chat, but this model had an explicit openai-responses adapter override.
Logs or error output
Observed Codex result:
aborted
Session observations:
top-level call was recorded as function_call(name=apply_patch);
no corresponding custom_tool_call_output was emitted;
the file was not modified;
OpenCode Go usage records were HTTP 200;
no upstream aborted, OpenCodex response.failed, approval denial, or sandbox denial was observed.
Screenshots and supporting files
No screenshots attached. Reproduction artifacts were written only under /tmp.
Thanks for taking the time to submit this issue. It was closed automatically because it was not opened with a recognized issue template (Bug report, Feature request, Documentation, or Provider compatibility). Freeform and API-opened issues cannot skip this check.
This looks like a bug report but it does not use the Bug report template headings (for example Description/Log entry instead of Summary).
Please edit the issue to add:
Use the Bug report template, or edit this issue to include: Client or integration, Summary, Reproduction, Version, and Operating system.
Retitling with [Bug]: and applying the bug label alone is not enough without those section headings filled in.
changed the title [-]OpenCode Go native Responses path still leaks undeclared apply_patch and shows aborted[/-][+][Bug]: OpenCode Go native Responses path leaks undeclared apply_patch and shows aborted[/+]on Aug 14, 2026
Activity
github-actions commentedon Aug 14, 2026
Issue closed: use an issue template
Thanks for taking the time to submit this issue. It was closed automatically because it was not opened with a recognized issue template (Bug report, Feature request, Documentation, or Provider compatibility). Freeform and API-opened issues cannot skip this check.
Please edit the issue to add:
[Bug]:and applying thebuglabel alone is not enough without those section headings filled in.See the Contributing guide for details.
Once the report passes the automated checks, it will be reopened automatically unless a maintainer has changed its state.
[-]OpenCode Go native Responses path still leaks undeclared apply_patch and shows aborted[/-][+][Bug]: OpenCode Go native Responses path leaks undeclared apply_patch and shows aborted[/+]