Skip to content

test(mcpx): effect probe for plugin.remember (#8472 burn-down slice) - #13034

Merged
dezren39 merged 1 commit into
mainfrom
lane-ka-8472
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-ka-8472

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What

One burn-down slice of #8472 (settings plugin family): plugin.remember gets a real effect probe, in the shape of the landed annotate/backend/bin/binArgs/env/daemonTools slices.

plugin.remember (MCPX_PLUGIN_REMEMBER) names how long a daemon choice stays chosen. Its whole effect lives in the opencode plugin host: daemon_pick falls back to the setting when a call names no scope of its own — session keeps the choice in memory only, while until-gone and indefinite write it to the host's per-plugin storage under daemon:<directory>, where a later session recalls it.

Changes

  • plugin/opencode/v2/remember.test.ts (new) — 4 bun cases driving the real tool runtime, the real picker and the real storage-backed applyChoice, with options resolved from the environment: unset (the session default) and explicit session persist nothing and report "for this session only"; until-gone and indefinite persist the picked target under the directory's key, read back through the real readRememberedDaemon; the scope shown to the permission prompt is the setting's value.
  • Go probe TestPluginRememberScopePersistsTheDaemonChoiceFromTheEnvironment in internal/e2e/plugin_test.go (runs the bun suite, fails on skips); mirror entries in internal/e2e/effect_test.go; plugin.remember moved from EffectExemptions to EffectProbes in internal/settings/effect.go; its line deleted from feature_coverage_exemptions.txt; exemption pin ratchets to 9 on current main (this slice removes one exemption; the daemonTools, tools, discoveryRetry and toolTiming slices landed on main mid-flight, and each rebase resolved by union — every landed probe registered, every landed exemption gone).

Verification (laptop worktree, on the final rebased state)

  • bun test plugin/opencode/v2/remember.test.ts — 4 pass / 0 fail.
  • go test ./internal/settings/ -count=1 — ok (guard + ratchet at pin 9).
  • go test ./internal/e2e/ -run "TestPlugin|TestFeatureCoverage" -count=1 — ok: all ten plugin probes (annotate, backend, bin, binArgs, env, daemonTools, tools, discoveryRetry, toolTiming, remember) and the coverage-guard tests pass.
  • gofmt clean; go vet clean.

#8472 stays open: exemptions remain for plugin.disabledTools (flag-held), plugin.headless and plugin.instructions.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 186cbebe-05e2-410c-aee5-783d40e673d9
Commits

Reviewing files that changed from the base of the PR and between 4a69436 and 260e9bf.

Files selected for processing: 5

  • pkgs/mcpx/internal/e2e/effect_test.go
  • pkgs/mcpx/internal/e2e/feature_coverage_exemptions.txt
  • pkgs/mcpx/internal/e2e/plugin_test.go
  • pkgs/mcpx/internal/settings/effect.go
  • pkgs/mcpx/plugin/opencode/v2/remember.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T07:38:30.022581Z 260e9bf New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 force-pushed the lane-ka-8472 branch 2 times, most recently from a531b11 to de6cbc9 Compare November 23, 2026 07:32
plugin.remember (MCPX_PLUGIN_REMEMBER) names how long a daemon
choice stays chosen. Its whole effect lives in the opencode plugin
host: daemon_pick falls back to the setting when a call names no
scope of its own — session keeps the choice in memory only, while
until-gone and indefinite write it to the host's per-plugin
storage under daemon:<directory>.

New bun suite plugin/opencode/v2/remember.test.ts drives the real
tool runtime, picker and storage-backed applyChoice with options
resolved from the environment: unset and explicit session persist
nothing; until-gone and indefinite persist the picked target,
readable back through the real readRememberedDaemon; the scope
shown to the permission prompt is the setting's value.

Go probe TestPluginRememberScopePersistsTheDaemonChoiceFromTheEnvironment
registered in the settings EffectProbes and the e2e mirror maps;
the plugin.remember exemption is deleted and the exemption pin
ratchets down by one.
@dezren39
dezren39 merged commit f93acb4 into main Nov 23, 2026
1 check passed
@dezren39
dezren39 deleted the lane-ka-8472 branch November 23, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant