Agent creation flow is failing #2618

Open
opened 2026-02-16 17:36:29 -05:00 by yindo · 7 comments
Owner

Originally created by @bryceremick on GitHub (Nov 5, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

The agent creation flow started failing on me today. Here is one example:

➜  ~ opencode agent create --print-logs
INFO  2025-11-06T01:52:49 +354ms service=default version=1.0.32 args=["agent","create","--print-logs"] opencode
INFO  2025-11-06T01:52:49 +0ms service=project directory=/Users/bryceremick fromDirectory

┌  Create agent
│
◇  Description
│  This agent should review code
│
INFO  2025-11-06T01:53:08 +18942ms service=config path=/Users/bryceremick/.config/opencode/config.json loading
INFO  2025-11-06T01:53:08 +1ms service=config path=/Users/bryceremick/.config/opencode/opencode.json loading
INFO  2025-11-06T01:53:08 +7ms service=config path=/Users/bryceremick/.config/opencode/opencode.jsonc loading
INFO  2025-11-06T01:53:08 +2ms service=bun cmd=["/Users/bryceremick/.bun/install/global/node_modules/opencode-darwin-arm64/bin/opencode","add","@opencode-ai/plugin@1.0.32","--exact"] cwd=/Users/bryceremick/.config/opencode running
INFO  2025-11-06T01:53:08 +12ms service=bun code=0 stdout=bun add v1.3.1 (89fa0f34)

installed @opencode-ai/plugin@1.0.32

[4.00ms] done
 stderr=Saved lockfile
 done
INFO  2025-11-06T01:53:08 +5ms service=models.dev file={} refreshing
INFO  2025-11-06T01:53:08 +2ms service=provider init
INFO  2025-11-06T01:53:08 +1ms service=plugin path=opencode-copilot-auth@0.0.4 loading plugin
INFO  2025-11-06T01:53:08 +2ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO  2025-11-06T01:53:08 +14ms service=provider providerID=opencode found
INFO  2025-11-06T01:53:08 +0ms service=provider providerID=anthropic found
INFO  2025-11-06T01:53:08 +0ms service=provider providerID=opencode modelID=glm-4.6 getModel
INFO  2025-11-06T01:53:08 +0ms service=provider status=started providerID=opencode getSDK
INFO  2025-11-06T01:53:08 +38ms service=provider status=completed duration=38 providerID=opencode getSDK
INFO  2025-11-06T01:53:08 +1ms service=provider providerID=opencode modelID=glm-4.6 found
■  LLM failed to generate agent: No object generated: response did not match schema.
ERROR 2025-11-06T01:53:10 +1204ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError
    at <anonymous> (src/cli/cmd/agent.ts:54:17)
    at processTicksAndRejections (native:7:39) fatal

OpenCode version

1.0.32

Steps to reproduce

  1. Run opencode agent create

Screenshot and/or share link

No response

Operating System

macOS 15.6.1

Terminal

WezTerm

Originally created by @bryceremick on GitHub (Nov 5, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description The agent creation flow started failing on me today. Here is one example: ```bash ➜ ~ opencode agent create --print-logs INFO 2025-11-06T01:52:49 +354ms service=default version=1.0.32 args=["agent","create","--print-logs"] opencode INFO 2025-11-06T01:52:49 +0ms service=project directory=/Users/bryceremick fromDirectory ┌ Create agent │ ◇ Description │ This agent should review code │ INFO 2025-11-06T01:53:08 +18942ms service=config path=/Users/bryceremick/.config/opencode/config.json loading INFO 2025-11-06T01:53:08 +1ms service=config path=/Users/bryceremick/.config/opencode/opencode.json loading INFO 2025-11-06T01:53:08 +7ms service=config path=/Users/bryceremick/.config/opencode/opencode.jsonc loading INFO 2025-11-06T01:53:08 +2ms service=bun cmd=["/Users/bryceremick/.bun/install/global/node_modules/opencode-darwin-arm64/bin/opencode","add","@opencode-ai/plugin@1.0.32","--exact"] cwd=/Users/bryceremick/.config/opencode running INFO 2025-11-06T01:53:08 +12ms service=bun code=0 stdout=bun add v1.3.1 (89fa0f34) installed @opencode-ai/plugin@1.0.32 [4.00ms] done stderr=Saved lockfile done INFO 2025-11-06T01:53:08 +5ms service=models.dev file={} refreshing INFO 2025-11-06T01:53:08 +2ms service=provider init INFO 2025-11-06T01:53:08 +1ms service=plugin path=opencode-copilot-auth@0.0.4 loading plugin INFO 2025-11-06T01:53:08 +2ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin INFO 2025-11-06T01:53:08 +14ms service=provider providerID=opencode found INFO 2025-11-06T01:53:08 +0ms service=provider providerID=anthropic found INFO 2025-11-06T01:53:08 +0ms service=provider providerID=opencode modelID=glm-4.6 getModel INFO 2025-11-06T01:53:08 +0ms service=provider status=started providerID=opencode getSDK INFO 2025-11-06T01:53:08 +38ms service=provider status=completed duration=38 providerID=opencode getSDK INFO 2025-11-06T01:53:08 +1ms service=provider providerID=opencode modelID=glm-4.6 found ■ LLM failed to generate agent: No object generated: response did not match schema. ERROR 2025-11-06T01:53:10 +1204ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError at <anonymous> (src/cli/cmd/agent.ts:54:17) at processTicksAndRejections (native:7:39) fatal ``` ### OpenCode version 1.0.32 ### Steps to reproduce 1. Run `opencode agent create` ### Screenshot and/or share link _No response_ ### Operating System macOS 15.6.1 ### Terminal WezTerm
yindo added the bug label 2026-02-16 17:36:29 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2040: Same "LLM failed to generate agent: No object generated: response did not match schema" error when using opencode agent create command

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 5, 2025): This issue might be a duplicate of existing issues. Please check: - #2040: Same "LLM failed to generate agent: No object generated: response did not match schema" error when using `opencode agent create` command Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 5, 2025):

we should handle it better model disobeys this is an easy one to fix

@rekram1-node commented on GitHub (Nov 5, 2025): we should handle it better model disobeys this is an easy one to fix
Author
Owner

@pete-willard commented on GitHub (Nov 25, 2025):

Still happends on 1.0.112. I'm using Zen btw.

-> opencode agent create --print-logs
INFO  2025-11-25T22:17:35 +169ms service=default version=1.0.112 args=["agent","create","--print-logs"] opencode
INFO  2025-11-25T22:17:35 +0ms service=default directory=/home/peter creating instance
INFO  2025-11-25T22:17:35 +0ms service=project directory=/home/peter fromDirectory

┌  Create agent
│
◇  Description
│  Review GitHub PRs
│
INFO  2025-11-25T22:17:45 +9545ms service=config path=/home/peter/.config/opencode/config.json loading
INFO  2025-11-25T22:17:45 +0ms service=config path=/home/peter/.config/opencode/opencode.json loading
INFO  2025-11-25T22:17:45 +4ms service=config path=/home/peter/.config/opencode/opencode.jsonc loading
INFO  2025-11-25T22:17:45 +2ms service=bun cmd=["/home/peter/.local/share/pnpm/global/5/.pnpm/opencode-linux-x64@1.0.112/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.0.112","--exact"] cwd=/home/peter/.config/opencode running
INFO  2025-11-25T22:17:45 +1ms service=config path=/home/peter/.opencode/opencode.jsonc loading
INFO  2025-11-25T22:17:45 +0ms service=config path=/home/peter/.opencode/opencode.json loading
INFO  2025-11-25T22:17:45 +0ms service=bun cmd=["/home/peter/.local/share/pnpm/global/5/.pnpm/opencode-linux-x64@1.0.112/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.0.112","--exact"] cwd=/home/peter/.opencode running
INFO  2025-11-25T22:17:45 +2ms service=bun code=0 stdout=bun add v1.3.3 (274e01c7)

installed @opencode-ai/plugin@1.0.112

[1.00ms] done
 stderr=Saved lockfile
 done
INFO  2025-11-25T22:17:45 +1ms service=bun code=0 stdout=bun add v1.3.3 (274e01c7)

installed @opencode-ai/plugin@1.0.112

[1.00ms] done
 stderr=Saved lockfile
 done
INFO  2025-11-25T22:17:45 +3ms service=provider status=started state
INFO  2025-11-25T22:17:45 +1ms service=models.dev file={} refreshing
INFO  2025-11-25T22:17:45 +3ms service=provider init
INFO  2025-11-25T22:17:45 +2ms service=plugin path=opencode-copilot-auth@0.0.7 loading plugin
INFO  2025-11-25T22:17:45 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO  2025-11-25T22:17:45 +11ms service=provider providerID=opencode npm=@ai-sdk/openai-compatible found
INFO  2025-11-25T22:17:45 +0ms service=provider providerID=anthropic npm=@ai-sdk/anthropic found
INFO  2025-11-25T22:17:45 +0ms service=provider status=completed duration=18 state
INFO  2025-11-25T22:17:45 +0ms service=provider providerID=claude-sonnet-4-5 modelID= getModel

■  LLM failed to generate agent: ProviderModelNotFoundError

ERROR 2025-11-25T22:17:45 +6ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError
    at <anonymous> (src/cli/cmd/agent.ts:55:17)
    at processTicksAndRejections (native:7:39) fatal
@pete-willard commented on GitHub (Nov 25, 2025): Still happends on 1.0.112. I'm using Zen btw. ```bash -> opencode agent create --print-logs INFO 2025-11-25T22:17:35 +169ms service=default version=1.0.112 args=["agent","create","--print-logs"] opencode INFO 2025-11-25T22:17:35 +0ms service=default directory=/home/peter creating instance INFO 2025-11-25T22:17:35 +0ms service=project directory=/home/peter fromDirectory ┌ Create agent │ ◇ Description │ Review GitHub PRs │ INFO 2025-11-25T22:17:45 +9545ms service=config path=/home/peter/.config/opencode/config.json loading INFO 2025-11-25T22:17:45 +0ms service=config path=/home/peter/.config/opencode/opencode.json loading INFO 2025-11-25T22:17:45 +4ms service=config path=/home/peter/.config/opencode/opencode.jsonc loading INFO 2025-11-25T22:17:45 +2ms service=bun cmd=["/home/peter/.local/share/pnpm/global/5/.pnpm/opencode-linux-x64@1.0.112/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.0.112","--exact"] cwd=/home/peter/.config/opencode running INFO 2025-11-25T22:17:45 +1ms service=config path=/home/peter/.opencode/opencode.jsonc loading INFO 2025-11-25T22:17:45 +0ms service=config path=/home/peter/.opencode/opencode.json loading INFO 2025-11-25T22:17:45 +0ms service=bun cmd=["/home/peter/.local/share/pnpm/global/5/.pnpm/opencode-linux-x64@1.0.112/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.0.112","--exact"] cwd=/home/peter/.opencode running INFO 2025-11-25T22:17:45 +2ms service=bun code=0 stdout=bun add v1.3.3 (274e01c7) installed @opencode-ai/plugin@1.0.112 [1.00ms] done stderr=Saved lockfile done INFO 2025-11-25T22:17:45 +1ms service=bun code=0 stdout=bun add v1.3.3 (274e01c7) installed @opencode-ai/plugin@1.0.112 [1.00ms] done stderr=Saved lockfile done INFO 2025-11-25T22:17:45 +3ms service=provider status=started state INFO 2025-11-25T22:17:45 +1ms service=models.dev file={} refreshing INFO 2025-11-25T22:17:45 +3ms service=provider init INFO 2025-11-25T22:17:45 +2ms service=plugin path=opencode-copilot-auth@0.0.7 loading plugin INFO 2025-11-25T22:17:45 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin INFO 2025-11-25T22:17:45 +11ms service=provider providerID=opencode npm=@ai-sdk/openai-compatible found INFO 2025-11-25T22:17:45 +0ms service=provider providerID=anthropic npm=@ai-sdk/anthropic found INFO 2025-11-25T22:17:45 +0ms service=provider status=completed duration=18 state INFO 2025-11-25T22:17:45 +0ms service=provider providerID=claude-sonnet-4-5 modelID= getModel ■ LLM failed to generate agent: ProviderModelNotFoundError ERROR 2025-11-25T22:17:45 +6ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError at <anonymous> (src/cli/cmd/agent.ts:55:17) at processTicksAndRejections (native:7:39) fatal ```
Author
Owner

@rekram1-node commented on GitHub (Nov 25, 2025):

got it ill fix

@rekram1-node commented on GitHub (Nov 25, 2025): got it ill fix
Author
Owner

@mcread29 commented on GitHub (Dec 2, 2025):

not sure if this is the same issue but i'm getting these logs on debian

root@homelab:/# opencode agent create --print-logs
INFO  2025-12-02T21:25:48 +338ms service=default version=1.0.128 args=["agent","create","--print-logs"] opencode
INFO  2025-12-02T21:25:48 +1ms service=default directory=/ creating instance
INFO  2025-12-02T21:25:48 +0ms service=project directory=/ fromDirectory

┌  Create agent
│
◇  Description
│  git
│
INFO  2025-12-02T21:25:52 +3972ms service=config path=/root/.config/opencode/config.json loading
INFO  2025-12-02T21:25:52 +1ms service=config path=/root/.config/opencode/opencode.json loading
INFO  2025-12-02T21:25:52 +1ms service=config path=/root/.config/opencode/opencode.jsonc loading
INFO  2025-12-02T21:25:52 +14ms service=bun cmd=["/root/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.0.128","--exact"] cwd=/root/.config/opencode running
INFO  2025-12-02T21:25:52 +24ms service=bun code=0 stdout=bun add v1.3.3 (274e01c7)

installed @opencode-ai/plugin@1.0.128

[9.00ms] done
 stderr=Saved lockfile
 done
INFO  2025-12-02T21:25:52 +13ms service=provider status=started state
INFO  2025-12-02T21:25:52 +3ms service=models.dev file={} refreshing
INFO  2025-12-02T21:25:52 +8ms service=provider init
INFO  2025-12-02T21:25:52 +3ms service=plugin path=opencode-copilot-auth@0.0.7 loading plugin
INFO  2025-12-02T21:25:52 +3ms service=plugin path=opencode-anthropic-auth@0.0.3 loading plugin
◒  Generating agent configurationINFO  2025-12-02T21:25:52 +25ms service=provider providerID=opencode npm=@ai-sdk/openai-compatible found
INFO  2025-12-02T21:25:52 +0ms service=provider status=completed duration=42 state
INFO  2025-12-02T21:25:52 +1ms service=provider providerID=opencode modelID=gemini-3-pro getModel
INFO  2025-12-02T21:25:52 +1ms service=provider status=started providerID=opencode getSDK
INFO  2025-12-02T21:25:52 +0ms service=provider providerID=opencode pkg=@ai-sdk/google using bundled provider
INFO  2025-12-02T21:25:52 +0ms service=provider status=completed duration=0 providerID=opencode getSDK
INFO  2025-12-02T21:25:52 +0ms service=provider providerID=opencode modelID=gemini-3-pro found
■  LLM failed to generate agent: Failed after 3 attempts. Last error: Internal Server Error
ERROR 2025-12-02T21:27:21 +88813ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError
    at <anonymous> (src/cli/cmd/agent.ts:55:17)
    at processTicksAndRejections (native:7:39) fatal
@mcread29 commented on GitHub (Dec 2, 2025): not sure if this is the same issue but i'm getting these logs on debian ```bash root@homelab:/# opencode agent create --print-logs INFO 2025-12-02T21:25:48 +338ms service=default version=1.0.128 args=["agent","create","--print-logs"] opencode INFO 2025-12-02T21:25:48 +1ms service=default directory=/ creating instance INFO 2025-12-02T21:25:48 +0ms service=project directory=/ fromDirectory ┌ Create agent │ ◇ Description │ git │ INFO 2025-12-02T21:25:52 +3972ms service=config path=/root/.config/opencode/config.json loading INFO 2025-12-02T21:25:52 +1ms service=config path=/root/.config/opencode/opencode.json loading INFO 2025-12-02T21:25:52 +1ms service=config path=/root/.config/opencode/opencode.jsonc loading INFO 2025-12-02T21:25:52 +14ms service=bun cmd=["/root/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.0.128","--exact"] cwd=/root/.config/opencode running INFO 2025-12-02T21:25:52 +24ms service=bun code=0 stdout=bun add v1.3.3 (274e01c7) installed @opencode-ai/plugin@1.0.128 [9.00ms] done stderr=Saved lockfile done INFO 2025-12-02T21:25:52 +13ms service=provider status=started state INFO 2025-12-02T21:25:52 +3ms service=models.dev file={} refreshing INFO 2025-12-02T21:25:52 +8ms service=provider init INFO 2025-12-02T21:25:52 +3ms service=plugin path=opencode-copilot-auth@0.0.7 loading plugin INFO 2025-12-02T21:25:52 +3ms service=plugin path=opencode-anthropic-auth@0.0.3 loading plugin ◒ Generating agent configurationINFO 2025-12-02T21:25:52 +25ms service=provider providerID=opencode npm=@ai-sdk/openai-compatible found INFO 2025-12-02T21:25:52 +0ms service=provider status=completed duration=42 state INFO 2025-12-02T21:25:52 +1ms service=provider providerID=opencode modelID=gemini-3-pro getModel INFO 2025-12-02T21:25:52 +1ms service=provider status=started providerID=opencode getSDK INFO 2025-12-02T21:25:52 +0ms service=provider providerID=opencode pkg=@ai-sdk/google using bundled provider INFO 2025-12-02T21:25:52 +0ms service=provider status=completed duration=0 providerID=opencode getSDK INFO 2025-12-02T21:25:52 +0ms service=provider providerID=opencode modelID=gemini-3-pro found ■ LLM failed to generate agent: Failed after 3 attempts. Last error: Internal Server Error ERROR 2025-12-02T21:27:21 +88813ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError at <anonymous> (src/cli/cmd/agent.ts:55:17) at processTicksAndRejections (native:7:39) fatal ```
Author
Owner

@cravenceiling commented on GitHub (Jan 9, 2026):

not sure if this is the same issue but i'm getting these logs on debian

root@homelab:/# opencode agent create --print-logs
INFO 2025-12-02T21:25:48 +338ms service=default version=1.0.128 args=["agent","create","--print-logs"] opencode
INFO 2025-12-02T21:25:48 +1ms service=default directory=/ creating instance
INFO 2025-12-02T21:25:48 +0ms service=project directory=/ fromDirectory

┌ Create agent

◇ Description
│ git

INFO 2025-12-02T21:25:52 +3972ms service=config path=/root/.config/opencode/config.json loading
INFO 2025-12-02T21:25:52 +1ms service=config path=/root/.config/opencode/opencode.json loading
INFO 2025-12-02T21:25:52 +1ms service=config path=/root/.config/opencode/opencode.jsonc loading
INFO 2025-12-02T21:25:52 +14ms service=bun cmd=["/root/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.0.128","--exact"] cwd=/root/.config/opencode running
INFO 2025-12-02T21:25:52 +24ms service=bun code=0 stdout=bun add v1.3.3 (274e01c7)

installed @opencode-ai/plugin@1.0.128

[9.00ms] done
stderr=Saved lockfile
done
INFO 2025-12-02T21:25:52 +13ms service=provider status=started state
INFO 2025-12-02T21:25:52 +3ms service=models.dev file={} refreshing
INFO 2025-12-02T21:25:52 +8ms service=provider init
INFO 2025-12-02T21:25:52 +3ms service=plugin path=opencode-copilot-auth@0.0.7 loading plugin
INFO 2025-12-02T21:25:52 +3ms service=plugin path=opencode-anthropic-auth@0.0.3 loading plugin
◒ Generating agent configurationINFO 2025-12-02T21:25:52 +25ms service=provider providerID=opencode npm=@ai-sdk/openai-compatible found
INFO 2025-12-02T21:25:52 +0ms service=provider status=completed duration=42 state
INFO 2025-12-02T21:25:52 +1ms service=provider providerID=opencode modelID=gemini-3-pro getModel
INFO 2025-12-02T21:25:52 +1ms service=provider status=started providerID=opencode getSDK
INFO 2025-12-02T21:25:52 +0ms service=provider providerID=opencode pkg=@ai-sdk/google using bundled provider
INFO 2025-12-02T21:25:52 +0ms service=provider status=completed duration=0 providerID=opencode getSDK
INFO 2025-12-02T21:25:52 +0ms service=provider providerID=opencode modelID=gemini-3-pro found
■ LLM failed to generate agent: Failed after 3 attempts. Last error: Internal Server Error
ERROR 2025-12-02T21:27:21 +88813ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError
at (src/cli/cmd/agent.ts:55:17)
at processTicksAndRejections (native:7:39) fatal

@mcread29 Try upgrading opencode. And I think there's something off in your config, are you using gemini-3-pro with opencode as provider?

@cravenceiling commented on GitHub (Jan 9, 2026): > not sure if this is the same issue but i'm getting these logs on debian > > root@homelab:/# opencode agent create --print-logs > INFO 2025-12-02T21:25:48 +338ms service=default version=1.0.128 args=["agent","create","--print-logs"] opencode > INFO 2025-12-02T21:25:48 +1ms service=default directory=/ creating instance > INFO 2025-12-02T21:25:48 +0ms service=project directory=/ fromDirectory > > ┌ Create agent > │ > ◇ Description > │ git > │ > INFO 2025-12-02T21:25:52 +3972ms service=config path=/root/.config/opencode/config.json loading > INFO 2025-12-02T21:25:52 +1ms service=config path=/root/.config/opencode/opencode.json loading > INFO 2025-12-02T21:25:52 +1ms service=config path=/root/.config/opencode/opencode.jsonc loading > INFO 2025-12-02T21:25:52 +14ms service=bun cmd=["/root/.bun/install/global/node_modules/opencode-linux-x64/bin/opencode","add","@opencode-ai/plugin@1.0.128","--exact"] cwd=/root/.config/opencode running > INFO 2025-12-02T21:25:52 +24ms service=bun code=0 stdout=bun add v1.3.3 (274e01c7) > > installed @opencode-ai/plugin@1.0.128 > > [9.00ms] done > stderr=Saved lockfile > done > INFO 2025-12-02T21:25:52 +13ms service=provider status=started state > INFO 2025-12-02T21:25:52 +3ms service=models.dev file={} refreshing > INFO 2025-12-02T21:25:52 +8ms service=provider init > INFO 2025-12-02T21:25:52 +3ms service=plugin path=opencode-copilot-auth@0.0.7 loading plugin > INFO 2025-12-02T21:25:52 +3ms service=plugin path=opencode-anthropic-auth@0.0.3 loading plugin > ◒ Generating agent configurationINFO 2025-12-02T21:25:52 +25ms service=provider providerID=opencode npm=@ai-sdk/openai-compatible found > INFO 2025-12-02T21:25:52 +0ms service=provider status=completed duration=42 state > INFO 2025-12-02T21:25:52 +1ms service=provider providerID=opencode modelID=gemini-3-pro getModel > INFO 2025-12-02T21:25:52 +1ms service=provider status=started providerID=opencode getSDK > INFO 2025-12-02T21:25:52 +0ms service=provider providerID=opencode pkg=@ai-sdk/google using bundled provider > INFO 2025-12-02T21:25:52 +0ms service=provider status=completed duration=0 providerID=opencode getSDK > INFO 2025-12-02T21:25:52 +0ms service=provider providerID=opencode modelID=gemini-3-pro found > ■ LLM failed to generate agent: Failed after 3 attempts. Last error: Internal Server Error > ERROR 2025-12-02T21:27:21 +88813ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError > at <anonymous> (src/cli/cmd/agent.ts:55:17) > at processTicksAndRejections (native:7:39) fatal @mcread29 Try upgrading opencode. And I think there's something off in your config, are you using gemini-3-pro with opencode as provider?
Author
Owner

@TyrionFront commented on GitHub (Jan 16, 2026):

Same problem for MacBook Air (Tahoe 26.2) - no matter what LLM is picked up after login (Zen profile):

opencode agent create --print-logs
INFO  2026-01-16T13:04:31 +397ms service=default version=1.1.23 args=["agent","create","--print-logs"] opencode
INFO  2026-01-16T13:04:31 +0ms service=default directory=/Users/whoami/Desktop/PROJECTS/Pickme/graphql-api creating instance
INFO  2026-01-16T13:04:31 +0ms service=project directory=/Users/whoami/Desktop/PROJECTS/Pickme/graphql-api fromDirectory

┌  Create agent
│
◇  Location
│  Current project
│
◇  Description
│  Code review
│
INFO  2026-01-16T13:04:36 +5488ms service=config path=/Users/whoami/.config/opencode/config.json loading
INFO  2026-01-16T13:04:36 +1ms service=config path=/Users/whoami/.config/opencode/opencode.json loading
INFO  2026-01-16T13:04:36 +0ms service=config path=/Users/whoami/.config/opencode/opencode.jsonc loading
INFO  2026-01-16T13:04:36 +4ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.1.23/bin/opencode","add","@opencode-ai/plugin@1.1.23","--exact"] cwd=/Users/whoami/.config/opencode running
INFO  2026-01-16T13:04:36 +11ms service=provider status=started state
INFO  2026-01-16T13:04:36 +8ms service=models.dev file={} refreshing
INFO  2026-01-16T13:04:36 +0ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.1.23

[6.00ms] done
 stderr=Saved lockfile
 done
INFO  2026-01-16T13:04:36 +1ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.1.23/bin/opencode","install"] cwd=/Users/whoami/.config/opencode running
INFO  2026-01-16T13:04:36 +15ms service=provider init
INFO  2026-01-16T13:04:36 +1ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)

Checked 3 installs across 4 packages (no changes) [3.00ms]
 stderr= done
INFO  2026-01-16T13:04:36 +1ms service=plugin name=CodexAuthPlugin loading internal plugin
INFO  2026-01-16T13:04:36 +0ms service=plugin name=CopilotAuthPlugin loading internal plugin
INFO  2026-01-16T13:04:36 +1ms service=plugin path=opencode-anthropic-auth@0.0.9 loading plugin
INFO  2026-01-16T13:04:36 +37ms service=plugin path=@gitlab/opencode-gitlab-auth@1.3.0 loading plugin
◒  Generating agent configurationINFO  2026-01-16T13:04:36 +62ms service=provider providerID=opencode found
INFO  2026-01-16T13:04:36 +0ms service=provider status=completed duration=126 state
INFO  2026-01-16T13:04:36 +1ms service=provider status=started providerID=opencode getSDK
INFO  2026-01-16T13:04:36 +0ms service=provider providerID=opencode pkg=@ai-sdk/google using bundled provider
INFO  2026-01-16T13:04:36 +0ms service=provider status=completed duration=0 providerID=opencode getSDK
■  LLM failed to generate agent: Failed after 3 attempts. Last error: Internal Server Error
ERROR 2026-01-16T13:05:58 +81518ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError
    at <anonymous> (src/cli/cmd/agent.ts:127:17)
    at processTicksAndRejections (native:7:39) fatal
@TyrionFront commented on GitHub (Jan 16, 2026): Same problem for MacBook Air (Tahoe 26.2) - no matter what LLM is picked up after login (Zen profile): ``` opencode agent create --print-logs INFO 2026-01-16T13:04:31 +397ms service=default version=1.1.23 args=["agent","create","--print-logs"] opencode INFO 2026-01-16T13:04:31 +0ms service=default directory=/Users/whoami/Desktop/PROJECTS/Pickme/graphql-api creating instance INFO 2026-01-16T13:04:31 +0ms service=project directory=/Users/whoami/Desktop/PROJECTS/Pickme/graphql-api fromDirectory ┌ Create agent │ ◇ Location │ Current project │ ◇ Description │ Code review │ INFO 2026-01-16T13:04:36 +5488ms service=config path=/Users/whoami/.config/opencode/config.json loading INFO 2026-01-16T13:04:36 +1ms service=config path=/Users/whoami/.config/opencode/opencode.json loading INFO 2026-01-16T13:04:36 +0ms service=config path=/Users/whoami/.config/opencode/opencode.jsonc loading INFO 2026-01-16T13:04:36 +4ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.1.23/bin/opencode","add","@opencode-ai/plugin@1.1.23","--exact"] cwd=/Users/whoami/.config/opencode running INFO 2026-01-16T13:04:36 +11ms service=provider status=started state INFO 2026-01-16T13:04:36 +8ms service=models.dev file={} refreshing INFO 2026-01-16T13:04:36 +0ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.1.23 [6.00ms] done stderr=Saved lockfile done INFO 2026-01-16T13:04:36 +1ms service=bun cmd=["/opt/homebrew/Cellar/opencode/1.1.23/bin/opencode","install"] cwd=/Users/whoami/.config/opencode running INFO 2026-01-16T13:04:36 +15ms service=provider init INFO 2026-01-16T13:04:36 +1ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd) Checked 3 installs across 4 packages (no changes) [3.00ms] stderr= done INFO 2026-01-16T13:04:36 +1ms service=plugin name=CodexAuthPlugin loading internal plugin INFO 2026-01-16T13:04:36 +0ms service=plugin name=CopilotAuthPlugin loading internal plugin INFO 2026-01-16T13:04:36 +1ms service=plugin path=opencode-anthropic-auth@0.0.9 loading plugin INFO 2026-01-16T13:04:36 +37ms service=plugin path=@gitlab/opencode-gitlab-auth@1.3.0 loading plugin ◒ Generating agent configurationINFO 2026-01-16T13:04:36 +62ms service=provider providerID=opencode found INFO 2026-01-16T13:04:36 +0ms service=provider status=completed duration=126 state INFO 2026-01-16T13:04:36 +1ms service=provider status=started providerID=opencode getSDK INFO 2026-01-16T13:04:36 +0ms service=provider providerID=opencode pkg=@ai-sdk/google using bundled provider INFO 2026-01-16T13:04:36 +0ms service=provider status=completed duration=0 providerID=opencode getSDK ■ LLM failed to generate agent: Failed after 3 attempts. Last error: Internal Server Error ERROR 2026-01-16T13:05:58 +81518ms service=default name=UICancelledError message=UICancelledError stack=UICancelledError: UICancelledError at <anonymous> (src/cli/cmd/agent.ts:127:17) at processTicksAndRejections (native:7:39) fatal ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2618