Skip to content

fix(core): gate v2 edit tools by model - #34558

Merged
rekram1-node merged 1 commit into
v2from
v2-edit-gate
Jun 30, 2026
Merged

rekram1-node merged 1 commit into
v2from
v2-edit-gate

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • make V2 tool materialization aware of the selected model id
  • mimic V1 edit-tool selection: patch-oriented GPT models get apply_patch, other models get edit/write
  • add registry coverage for gpt-5, gpt-4o, gpt-oss, and claude cases

Testing

  • git diff --check
  • attempted bun test test/session-runner-tool-registry.test.ts from packages/core, but the fresh worktree had no installed dependencies (Cannot find package effect)

@rekram1-node
rekram1-node marked this pull request as ready for review June 30, 2026 03:54
@opencode-agent
opencode-agent Bot force-pushed the v2-edit-gate branch 3 times, most recently from ffd0c6d to f8cd8e1 Compare June 30, 2026 04:05
@rekram1-node
rekram1-node merged commit 524ee8f into v2 Jun 30, 2026
4 of 6 checks passed
@rekram1-node
rekram1-node deleted the v2-edit-gate branch June 30, 2026 04:53
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant