opencode
opencode copied to clipboard
feat: restore experimental flag for websearch/codesearch tools
Re-enables the OPENCODE_EXPERIMENTAL_EXA flag to allow non-zen users to opt-in to websearch and codesearch tools.
Context
Commit d95f724 enabled these tools for everyone, then 9c237f0 restricted them to zen users only while figuring out enterprise opt-out.
This PR provides an interim solution: zen users get the tools by default, while other users can opt-in via OPENCODE_EXPERIMENTAL_EXA=true (or the general OPENCODE_EXPERIMENTAL=true flag).
Changes
- Restore
OPENCODE_EXPERIMENTAL_EXAflag inflag.ts - Update
registry.tsfilter to allow tools whenproviderID === "opencode" || Flag.OPENCODE_EXPERIMENTAL_EXA
This matches the original experimental implementation pattern while preserving the zen-first behavior.