opencode
opencode copied to clipboard
Experimental plan mode handover -> build uses plan agent's model
Description
Planned with configured GTP-5.2, handover to build errored with GPT-5.2 rather than the configured opus-4.5
Plugins
No response
OpenCode version
1.1.25
Steps to reproduce
{
"$schema": "https://opencode.ai/config.json",
"agent": {
"plan": {
"model": "github-copilot/gpt-5.2"
},
"build": {
"model": "github-copilot/claude-opus-4.5"
},
},
}
OPENCODE_EXPERIMENTAL_PLAN_MODE=1 opencode
Plan and handover to build -> Errors with bad tool calls
⚙ functions.glob [pattern=packages/opencode/src/**/__tests__/**/*, path=/Users/stevoland/workspace/github.com/sst/opencode]
Tool 'functions.glob' not in registry. External tools (MCP, environment) cannot be batched - call them directly. Available tools: question, bash, read, glob, grep, edit, write, task, webfetch, todowrite, todoread, skill, lsp, plan_exit, plan_enter, repo-explorer, repo-explorer_repo_ast, repo-explorer_repo_cleanup, repo-explorer_repo_clone, repo-explorer_repo_deps, repo-explorer_repo_exports, repo-explorer_repo_file, repo-explorer_repo_find, repo-explorer_repo_hotspots, repo-explorer_repo_search, repo-explorer_repo_structure, github-triage, github-pr-search
Invalid 'messages[15].tool_calls[1].function.name': string does not match pattern. Expected a string that matches the pattern '^[a-zA-Z0-9_-]+$'.
▣ Build · gpt-5.2
### Screenshot and/or share link
_No response_
### Operating System
_No response_
### Terminal
_No response_