[FEATURE]:apply_patch tool Why isn't this great feature made available to everyone, instead of being restricted to GPT only? #7320

Open
opened 2026-02-16 18:06:49 -05:00 by yindo · 2 comments
Owner

Originally created by @ai-llt on GitHub (Jan 23, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Why isn't this great feature available to everyone and only limited to GPT usage?

// use apply tool in same format as codex
const usePatch =
  model.modelID.includes("gpt-") && !model.modelID.includes("oss") && !model.modelID.includes("gpt-4")
if (t.id === "apply_patch") return usePatch
if (t.id === "edit" || t.id === "write") return !usePatch

edit要提供两份代码,apply只需要提供差异,更高效和精准,为何不全面推广?

Originally created by @ai-llt on GitHub (Jan 23, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request Why isn't this great feature available to everyone and only limited to GPT usage? ```ts // use apply tool in same format as codex const usePatch = model.modelID.includes("gpt-") && !model.modelID.includes("oss") && !model.modelID.includes("gpt-4") if (t.id === "apply_patch") return usePatch if (t.id === "edit" || t.id === "write") return !usePatch ``` edit要提供两份代码,apply只需要提供差异,更高效和精准,为何不全面推广?
yindo added the discussionzen labels 2026-02-16 18:06:49 -05:00
Author
Owner

@paulp-o commented on GitHub (Feb 2, 2026):

apply_patch is a tool that is trained specifically to OpenAI models by an intention of them being used in codex cli, so other models wouldn't be very familiar to that tool

@paulp-o commented on GitHub (Feb 2, 2026): apply_patch is a tool that is trained specifically to OpenAI models by an intention of them being used in codex cli, so other models wouldn't be very familiar to that tool
Author
Owner

@bendtherules commented on GitHub (Feb 12, 2026):

Minimax m2.1 seems to be pretty aware of it and tried to use it initially but failed. Later backed off to filesystem mcp.
I would also suggest enabling it for other models to make better edits.
Maybe enabled under a config?

@bendtherules commented on GitHub (Feb 12, 2026): Minimax m2.1 seems to be pretty aware of it and tried to use it initially but failed. Later backed off to filesystem mcp. I would also suggest enabling it for other models to make better edits. Maybe enabled under a config?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7320