fix(opencode): remove broken codesearch tool#505
Conversation
There was a problem hiding this comment.
Code Review
This pull request removes the codesearch tool from the codebase. The changes involve deleting the tool's implementation and documentation, removing its references from permission configurations, CLI commands, and the tool registry, and updating the UI and SDK to exclude codesearch related logic and translations. I have no feedback to provide.
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (33)
💤 Files with no reviewable changes (29)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (2)packages/opencode/**/*.ts📄 CodeRabbit inference engine (packages/opencode/AGENTS.md)
Files:
packages/opencode/test/**/*.test.{ts,tsx}📄 CodeRabbit inference engine (packages/opencode/test/AGENTS.md)
Files:
🧠 Learnings (2)📚 Learning: 2026-05-06T11:18:14.761ZApplied to files:
📚 Learning: 2026-04-23T08:51:00.819ZApplied to files:
🔇 Additional comments (5)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR removes the CodeSearch tool entirely and replaces it with WebFetch and WebSearch tools. Changes span permission configuration, tool registry, CLI dispatch, UI components, and localization across 17 languages. ChangesCodeSearch Tool Removal & WebFetch/WebSearch Migration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
codesearchtool from PawWork's opencode runtime, registry, permissions, CLI rendering, SDK/OpenAPI schema, and app/UI display surfaces.get_code_context_exaMCP method.codesearchagain.Why
#477 tracks PawWork's upstream opencode sync after
17701628bd. Upstream opencode removedcodesearchin anomalyco/opencode#24992 because Exa MCP no longer providesget_code_context_exa, which made the tool fail at runtime. PR #504 intentionally split this deletion out from the runtime safety PR because the local surface spans runtime, generated API types, app settings text, and UI rendering.Related Issue
Refs #477
Human Review Status
Pending. A human should make the final merge decision after reviewing the final diff and verification evidence.
Review Focus
websearchremains unchanged and still gated by the existing web search setting.codesearchtool parts will fall back to the generic renderer rather than keeping a dedicated broken-tool display path.Risk Notes
Deletion behavior: existing configs that mention
permission.codesearchwill now be treated as an unknown permission key by the catchall config parser, but no built-in tool can use it. No dependency, lockfile, desktop packaging, Effect foundation, HttpApi listener, or workflow changes are included.How To Verify
Screenshots or Recordings
Not applicable. This removes a broken tool surface; there is no intended visible workflow besides removing stale labels for a tool that can no longer run.
Checklist
dev, and my PR title and commit messages use Conventional Commits in English