Description
After restarting OpenCode, the order of MCP tools can change even when the MCP configuration itself has not changed.
This breaks prompt caching for providers such as OpenAI, causing previously reusable cache entries to be missed.
Plugins
None
OpenCode version
1.14.19
Steps to reproduce
- Configure multiple MCP tools.
- Use the OpenAI provider.
- Start OpenCode and send a message.
- Record the order of
tools in the request.
- Restart OpenCode.
- Send another request with the same configuration.
- Compare the
tools field in both requests. The tool set may be identical, but the order can differ.
- This causes OpenAI prompt cache reuse to become unstable.
Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal
Description
After restarting OpenCode, the order of MCP tools can change even when the MCP configuration itself has not changed.
This breaks prompt caching for providers such as OpenAI, causing previously reusable cache entries to be missed.
Plugins
None
OpenCode version
1.14.19
Steps to reproduce
toolsin the request.toolsfield in both requests. The tool set may be identical, but the order can differ.Screenshot and/or share link
No response
Operating System
Windows 11
Terminal
Windows Terminal