Repository navigation
docs(harness-ops): narrow the headless reload hedge for removed plugin MCP servers - #18167
Conversation
…n MCP servers A probe on Claude Code 2.1.330 (headless -p stream-json session, scratch CLAUDE_CONFIG_DIR) showed that the Agent SDK's reload_plugins control request disconnects a removed plugin's MCP server: it left mcp_status and its process exited. The typed /reload-plugins in the same kind of session left the server connected and replied "Plugin MCP server changes take effect in your next session." scope-semantics.md now narrows the hedge for removals through the control request only. Closes #17910 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RAoAtV6H7kcRVG5xeX1rtT
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 07e0fc2e46
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-security-review reviewed Security review: PR #18167 (incremental, blocking only)No security issues found. This review covers only what changed since What changed. In the "Headless sessions can run it" paragraph, two wording edits:
The factual claim stays the same: the typed command leaves a removed plugin's server connected, and only the Agent SDK's Instruction-surface check. The paragraph is reference prose about what the harness does. It is not a standing rule that blocks an action. The edit removes no guardrail, block list or allowlist, so no protected class is touched. Other surfaces. The change does not touch:
The file is on no trusted path. Earlier findings and PR text. This lane's only earlier post was a clean summary with no findings, so nothing carries over. The PR description contains no embedded instructions to the lane. critical-findings: 0 |
|
claude-review reviewed Code review: PR #18167 (incremental, blocking only)This lane already reviewed an earlier head ( Prior finding resolved. The earlier inline finding said the probe observation named no probe. This push fixes all three of its points:
Closing issue #17910. The criterion reads: "lines 339-341 narrow the hedge for removals only, citing that evidence." It is now met. The hedge is narrowed only for removals made through the The change touches no manifest, so there are no manifest lines. No changed line loosens a check. The prompt had no Spend: none. Embedded text: none found in the PR context. This review covered only the push since Verifier dropped 0 of 0 candidates. |
Lane run report
Run 45040325967, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
Lane-Activity: pr-unblock/address-feedback Lane-Thread: PRRT_kwDOTCGFQM66lR7E Lane-Thread: PRRT_kwDOTCGFQM66lTv9
Lane run report
Run 45040325967, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
pr-unblock / address-feedback finished round 1 of max 4 on 2b628e3. |
Lane run report
Run 45040325967, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
Lane run report
Run 45040325967, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
Closes #17910
Summary
scope-semantics.mdhedged that a headless/reload-pluginsnever applies plugin MCP server changes in place. The 2.1.329 changelog fixed a removed plugin's MCP server staying connected in headless sessions afterreload_plugins. A probe on 2.1.330 shows that fix applies to the Agent SDK'sreload_pluginscontrol request only: the typed command still leaves the server connected. The plugins CLI reference still says the headless reload "doesn't connect or disconnect plugin MCP servers" (read 2026-11-22), so the narrowed sentence rests on the probe.Fix
plugins/harness-ops/skills/plugins/context/scope-semantics.md: the "Headless sessions can run it" paragraph narrows the hedge for removals through thereload_pluginscontrol request, and keeps the hedge for the typed command, additions and changes. It names the probe as this pull request (issue harness-ops: scope-semantics.md headless reload hedge for removed plugin MCP servers after 2.1.329 (probe first) #17910) and keeps a recheck trigger for re-running the probe. It carries no as-of date and does not restate the typed command's reply, because the upstream-drift contract gives a behavior-only probe record no stamp..changes/harness-ops/: patch fragment.Verification
Probe on Claude Code 2.1.330 (
claude --version), WSL2. It used a scratchCLAUDE_CONFIG_DIRand cwd under.work/, with a local marketplace whose one plugin ships a stdio MCP server. A Node driver ranclaude -p --input-format stream-json --output-format stream-json --verbose. In each run it sentmcp_status, ranclaude plugin uninstall mcpprobe@probe-mcp-market -s useragainst the scratch config, reloaded, then sentmcp_statusagain and checked the server process withpgrep.mcp_statusbeforemcp_statusafterreload_pluginscontrol requestplugin:mcpprobe:probesrvconnected{"mcpServers":[]}/reload-pluginsuser messageThe typed command's reply was
Reloaded: 0 plugins · 0 skills · 5 agents · 0 hooks · 0 plugin LSP serversfollowed byPlugin MCP server changes take effect in your next session.The live~/.claudewas not touched: the probe marketplace name appears in none of~/.claude/settings.json,~/.claude.jsonor~/.claude/plugins/{known_marketplaces,installed_plugins}.json.markdownlint-cli2andscripts/check-changelog-fragments.sh --checkpass. No test file changed, so no test suite or selection trace applies.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01RAoAtV6H7kcRVG5xeX1rtT