[PR #6902] fix: add support for ACP writeTextFile clientCapability #12154

Open
opened 2026-02-16 18:17:05 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6902

State: open
Merged: No


This is an attempt to fix the issue called out in issue 4240. By mirroring the write back to the client it causes the local review flows to trigger. It feels a bit inefficient, but it seems to match with the expectations of the spec. I looked at hijacking the tool call to just do the writes and reads through the client, but I couldn't find a good pattern to make that fit.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6902 **State:** open **Merged:** No --- This is an attempt to fix the issue called out in issue [4240](https://github.com/anomalyco/opencode/issues/4240). By mirroring the write back to the client it causes the local review flows to trigger. It feels a bit inefficient, but it seems to match with the expectations of the [spec](https://agentclientprotocol.com/protocol/file-system#writing-files). I looked at hijacking the tool call to just do the writes and reads through the client, but I couldn't find a good pattern to make that fit.
yindo added the pull-request label 2026-02-16 18:17:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12154