[PR #9299] fix: experimental plan mode build incorrectly uses plan's model #13059

Open
opened 2026-02-16 18:17:56 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9299

State: open
Merged: No


What does this PR do?

Resolves: https://github.com/anomalyco/opencode/issues/9296

Planned with configured GTP-5.2, handover to build errored with GPT-5.2 rather than the configured opus-4.5:

⚙ 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

How did you verify your code works?

 ./packages/opencode/script/build.ts --single
 ./packages/opencode/dist/opencode-darwin-arm64/bin/opencode

repeated previous prompt and build agent model was correctly invoked

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9299 **State:** open **Merged:** No --- ### What does this PR do? Resolves: https://github.com/anomalyco/opencode/issues/9296 Planned with configured GTP-5.2, handover to build errored with GPT-5.2 rather than the configured opus-4.5: ``` ⚙ 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 ``` ### How did you verify your code works? ```sh ./packages/opencode/script/build.ts --single ./packages/opencode/dist/opencode-darwin-arm64/bin/opencode ``` repeated previous prompt and build agent model was correctly invoked
yindo added the pull-request label 2026-02-16 18:17:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13059