Skip to content

fix(core): scope MCP execute guidance to Code Mode - #38753

Merged
rekram1-node merged 3 commits into
v2from
fix-mcp-guidance
Jul 24, 2026
Merged

rekram1-node merged 3 commits into
v2from
fix-mcp-guidance

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Jul 24, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • render execute and namespace routing only for Code Mode MCP servers
  • render only the server-provided instructions when Code Mode is disabled
  • keep those instructions visible when execute is denied
  • preserve historical guidance hashes by storing only the non-default codemode: false case

Testing

  • focused MCP tests: 26 passed before final naming cleanup
  • focused MCP instruction tests: 5 passed after cleanup
  • Prettier and git diff --check
  • background implementation plus independent subagent audit

@rekram1-node rekram1-node changed the title fix(core): route MCP guidance by placement fix(core): scope MCP execute guidance to Code Mode Jul 24, 2026
@rekram1-node
rekram1-node merged commit 13b6845 into v2 Jul 24, 2026
10 checks passed
@rekram1-node
rekram1-node deleted the fix-mcp-guidance branch July 24, 2026 21:03
jinhuang712 pushed a commit to jinhuang712/opencode that referenced this pull request Sep 26, 2026
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