fix(launch): gate ENABLE_TOOL_SEARCH on tool_surface_reduction#148
Merged
Conversation
CLEMENTINATOR
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Description of Changes
Companion fix to
edgee-ai/gateway#449for the ToolSearch / tool_surface_reduction conflict: when launching Claude Code (edgee launch claude), the client's own MCP Tool Search should stay off whenever the resolved key has server-sidetool_surface_reductionenabled, so the two mechanisms never race in the first place.ENABLE_TOOL_SEARCH=falseis now set by default only when the resolved API key hastool_surface_reductionenabled and the user hasn't already set the var themselves — with surface reduction off, the CLI leaves it untouched entirelylogin::ensure_valid_provider_keynow returnsProviderKeyStatus { created, compression }instead of a barebool, surfacing theCompressionit already fetches viaget_key_by_idwhile validating the cached key —claude.rsreadstool_surface_reductionoff that instead of issuing a second, identical requestcodex.rs,crush.rs,opencode.rs,codebuddy.rs, andrelay/mod.rs(2 call sites) only needed.createdoff the new struct — no behavior change thereRelated Issues
Related to EOSS-68
Related to #128
Related to edgee-ai/gateway#449