Repository navigation
test(mcpx): effect probe for plugin.disabledTools (#8472) - #13370
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 39 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The plugin.disabledTools setting (MCPX_PLUGIN_DISABLED_TOOLS) hid tools only on the say-so of the filter's own unit tests: the real setup path was driven with the host option, never with the setting as a user sets it. New bun suite plugin/opencode/v2/disabled-tools.test.ts drives the real setupMcpxV2 with the variable in the process environment and asserts the observable differences: unset hides nothing and seeds no policy; a named tool is hidden from the session's second turn while its siblings and the host tools stay; a separated list hides each named tool; a name outside the mcpx_ namespace can never hide a host tool; the host option beats the environment in both directions. Go probe TestPluginDisabledToolsHidesToolsFromTheEnvironment runs the suite from internal/e2e, with the mirror and anchor entries in effect_test.go. plugin.disabledTools moves from EffectExemptions to EffectProbes in internal/settings/effect.go, EffectExemptionPin 7 -> 6, and its line is deleted from feature_coverage_exemptions.txt.
dezren39
force-pushed
the
lane-yi-8472
branch
from
November 23, 2026 14:25
35f37c7 to
c10797b
Compare
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.
What
The
plugin.disabledToolsslice of the #8472 settings effect-probe burn-down, landed under Drew's 2026-11-23 batch approval of the former flag holds. Recovery pass: Lane YD's takeover claim on the issue ended silently with no worktree, PR, or commits; this branch adopts that orphaned claim (Lane JN's original flag hold stands behind it). The scope follows the landedplugin.instructionsslice (PR #13345) exactly.plugin/opencode/v2/disabled-tools.test.tsdriving the realsetupMcpxV2with the setting set the way a user sets it —MCPX_PLUGIN_DISABLED_TOOLSin the process environment: unset hides nothing and seeds no policy; a named tool is hidden from the session's second turn while its siblings and the host tools stay; a separated list hides each named tool; a name outside themcpx_namespace can never hide a host tool; the host option beats the environment in both directions.TestPluginDisabledToolsHidesToolsFromTheEnvironmentininternal/e2e/plugin_test.go, with the mirror entry inimplementedEffectProbesand the anchor ineffectProbeFuncs(internal/e2e/effect_test.go).plugin.disabledToolsmoved fromEffectExemptionstoEffectProbesininternal/settings/effect.go;EffectExemptionPin7 → 6; its line deleted fromfeature_coverage_exemptions.txt.#8472 stays open for the remaining exemptions (the daemon, http, and embeddings settings, plus
protoTasks.cancelGraceunder #8473).Verification (laptop, this branch)
bun test plugin/opencode/v2/disabled-tools.test.ts— 5 pass / 0 fail.bun test plugin/opencode/v2/tool-filter.test.ts plugin/opencode/v2/instructions.test.ts— 18 pass / 0 fail.go test ./internal/settings/ -count=1— ok.go test ./internal/e2e/ -run 'TestPluginDisabledToolsHidesToolsFromTheEnvironment|TestEffectProbeDeclarationsMatchTheProbesThatExist|TestFeatureCoverage' -count=1— all pass.go test ./internal/e2e/ -run TestPlugin -count=1— all 14 plugin probes pass.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.