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
When investigating this I noted that there is a specific clause in packages/opencode/src/tool/registry.ts that gives gpt-ish models apply_patch rather than edit, so this only occurs when using those specific models. apply_patch notably doesn't send the location for edits in the ACP payload. I ran a test ACP server and confirmed that it's the combination of "edit", "completed" and a valid location that causes this.
Plugins
none
OpenCode version
1.17.9
Steps to reproduce
Add opencode to Xcode 26.6 or higher as a custom ACP
Using a non-gpt model, ask for a file to be edited in the current project (specify not to use Xcode's MCP tools)
git status will show the file has been staged automatically regardless of Xcode's "automatically manage files" source control setting
Note that the same prompt from inside OpenCode directly does not stage anything as expected.
Just to reiterate, it looks like Opencode's response is sensible and it seems like an Xcode bug (I've reported as FB23217051), so I guess my request here is just to confirm that the edit tool's ACP response is aligned with the spec
Activity
bfrearson commentedon Jun 23, 2026
Just to reiterate, it looks like Opencode's response is sensible and it seems like an Xcode bug (I've reported as FB23217051), so I guess my request here is just to confirm that the
edittool's ACP response is aligned with the spec