Plan mode using Azure does not work #1659

Closed
opened 2026-02-16 17:31:59 -05:00 by yindo · 12 comments
Owner

Originally created by @eseaflower on GitHub (Sep 9, 2025).

Originally assigned to: @thdxr on GitHub.

I can't get planning mode to work with models provided via Azure. Whenever I try to run a query in plan mode opencode responds with:
"I'm sorry, but I cannot assist with that request."

Switching to build mode gives the same answer the first time I rerun the query, but trying again gives me an answer.
The log does not indicate any errors apart from not finding GPT-5-nano as a title model (I have no such model deployed).

ERROR 2025-09-09T05:16:10 +93ms service=session session=ses_6d318d812ffe0izVncE4PZnotg error=The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again. model=gpt-5-nano failed to generate title

(actually I also found these errors, not sure they are relevant:

ERROR 2025-09-09T05:14:48 +0ms service=server error=ENOENT: no such file or directory, open '/home/erik/.local/share/opencode/storage/message/ses_6d32dbf40ffeg9XeP5mVm6AHCt/msg_92cd294f60017Yt6S2z5MFnqWZ.json' failed
INFO  2025-09-09T05:14:48 +1ms service=server duration=7 response
INFO  2025-09-09T05:14:48 +0ms service=bus type=message.removed publishing
INFO  2025-09-09T05:14:48 +0ms service=project directory=/home/erik/work/sectra-reporting fromDirectory
INFO  2025-09-09T05:14:48 +0ms service=bus type=session.updated publishing
INFO  2025-09-09T05:14:48 +0ms service=project directory=/home/erik/work/sectra-reporting fromDirectory
ERROR 2025-09-09T05:14:48 +0ms service=tui failed to send message: POST "http://127.0.0.1:46244/session/ses_6d32dbf40ffeg9XeP5mVm6AHCt/message": 400 Bad Request {"name":"UnknownError","data":{"message":"Error: ENOENT: no such file or directory, open '/home/erik/.local/share/opencode/storage/message/ses_6d32dbf40ffeg9XeP5mVm6AHCt/msg_92cd294f60017Yt6S2z5MFnqWZ.json'"}}

)

I did some tests just prompting the model with "hi" in both plan mode and build mode
Build mode:

{
  "id": "msg_92ce871a90015hzStqhPiiogtA",
  "role": "assistant",
  "system": [
<truncated>
  ],
  "mode": "build",
  "path": {
    "cwd": "<path>",
    "root": "<path>"
  },
  "cost": 0.027494,
  "tokens": {
    "input": 10931,
    "output": 32,
    "reasoning": 0,
    "cache": {
      "write": 0,
      "read": 10752
    }
  },
  "modelID": "gpt-4.1",
  "providerID": "azure",
  "time": {
    "created": 1757395055017,
    "completed": 1757395056413
  },
  "sessionID": "ses_6d318d812ffe0izVncE4PZnotg"
}

The same prompt in plan mode:

{
  "id": "msg_92ce83bbb001OR9L0kSQ3YEbvu",
  "role": "assistant",
  "system": [
   <truncated>
  ],
  "mode": "plan",
  "path": {
    "cwd": "<path>",
    "root": "<path>"
  },
  "cost": 0,
  "tokens": {
    "input": 0,
    "output": 0,
    "reasoning": 0,
    "cache": {
      "write": 0,
      "read": 0
    }
  },
  "modelID": "gpt-4.1",
  "providerID": "azure",
  "time": {
    "created": 1757395041211,
    "completed": 1757395041839
  },
  "sessionID": "ses_6d318d812ffe0izVncE4PZnotg"
}

I have also tried using GPT-5-mini with the same result.

It is strange that this only affects plan mode, any thoughts? I'm not sure which logs/artifacts that are needed to troubleshoot this issue but I can provide them if asked.

Originally created by @eseaflower on GitHub (Sep 9, 2025). Originally assigned to: @thdxr on GitHub. I can't get planning mode to work with models provided via Azure. Whenever I try to run a query in plan mode opencode responds with: "I'm sorry, but I cannot assist with that request." Switching to build mode gives the same answer the first time I rerun the query, but trying again gives me an answer. The log does not indicate any errors apart from not finding GPT-5-nano as a title model (I have no such model deployed). ``` ERROR 2025-09-09T05:16:10 +93ms service=session session=ses_6d318d812ffe0izVncE4PZnotg error=The API deployment for this resource does not exist. If you created the deployment within the last 5 minutes, please wait a moment and try again. model=gpt-5-nano failed to generate title ``` (actually I also found these errors, not sure they are relevant: ``` ERROR 2025-09-09T05:14:48 +0ms service=server error=ENOENT: no such file or directory, open '/home/erik/.local/share/opencode/storage/message/ses_6d32dbf40ffeg9XeP5mVm6AHCt/msg_92cd294f60017Yt6S2z5MFnqWZ.json' failed INFO 2025-09-09T05:14:48 +1ms service=server duration=7 response INFO 2025-09-09T05:14:48 +0ms service=bus type=message.removed publishing INFO 2025-09-09T05:14:48 +0ms service=project directory=/home/erik/work/sectra-reporting fromDirectory INFO 2025-09-09T05:14:48 +0ms service=bus type=session.updated publishing INFO 2025-09-09T05:14:48 +0ms service=project directory=/home/erik/work/sectra-reporting fromDirectory ERROR 2025-09-09T05:14:48 +0ms service=tui failed to send message: POST "http://127.0.0.1:46244/session/ses_6d32dbf40ffeg9XeP5mVm6AHCt/message": 400 Bad Request {"name":"UnknownError","data":{"message":"Error: ENOENT: no such file or directory, open '/home/erik/.local/share/opencode/storage/message/ses_6d32dbf40ffeg9XeP5mVm6AHCt/msg_92cd294f60017Yt6S2z5MFnqWZ.json'"}} ``` ) I did some tests just prompting the model with "hi" in both plan mode and build mode Build mode: ``` { "id": "msg_92ce871a90015hzStqhPiiogtA", "role": "assistant", "system": [ <truncated> ], "mode": "build", "path": { "cwd": "<path>", "root": "<path>" }, "cost": 0.027494, "tokens": { "input": 10931, "output": 32, "reasoning": 0, "cache": { "write": 0, "read": 10752 } }, "modelID": "gpt-4.1", "providerID": "azure", "time": { "created": 1757395055017, "completed": 1757395056413 }, "sessionID": "ses_6d318d812ffe0izVncE4PZnotg" } ``` The same prompt in plan mode: ``` { "id": "msg_92ce83bbb001OR9L0kSQ3YEbvu", "role": "assistant", "system": [ <truncated> ], "mode": "plan", "path": { "cwd": "<path>", "root": "<path>" }, "cost": 0, "tokens": { "input": 0, "output": 0, "reasoning": 0, "cache": { "write": 0, "read": 0 } }, "modelID": "gpt-4.1", "providerID": "azure", "time": { "created": 1757395041211, "completed": 1757395041839 }, "sessionID": "ses_6d318d812ffe0izVncE4PZnotg" } ``` I have also tried using GPT-5-mini with the same result. It is strange that this only affects plan mode, any thoughts? I'm not sure which logs/artifacts that are needed to troubleshoot this issue but I can provide them if asked.
yindo added the model-problem label 2026-02-16 17:31:59 -05:00
yindo closed this issue 2026-02-16 17:31:59 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 9, 2025):

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

  • #441: Similar Azure model schema errors and invalid responses
  • #2362: Models responding as read-only/refusing to assist (similar behavior to plan mode issues)
  • #729: Reports the same "I'm sorry, but I cannot assist with that request" error message
  • #423: Issues with 0 tokens being reported for certain providers (similar to your 0 tokens in plan mode)

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

@github-actions[bot] commented on GitHub (Sep 9, 2025): This issue might be a duplicate of existing issues. Please check: - #441: Similar Azure model schema errors and invalid responses - #2362: Models responding as read-only/refusing to assist (similar behavior to plan mode issues) - #729: Reports the same "I'm sorry, but I cannot assist with that request" error message - #423: Issues with 0 tokens being reported for certain providers (similar to your 0 tokens in plan mode) Feel free to ignore if none of these address your specific case.
Author
Owner

@eseaflower commented on GitHub (Sep 9, 2025):

Managed to reproduce in a more concise way. Here are two runs one with the "plan" agent and one with the "build" agent.

erik@ORECZC34376JC:~/work/oc-bug$ opencode run "hi" --print-logs --agent plan
INFO  2025-09-09T11:04:24 +76ms service=default version=0.6.6 args=["run","hi","--print-logs","--agent","plan"] opencode
INFO  2025-09-09T11:04:24 +1ms service=project directory=/home/erik/work/oc-bug fromDirectory
INFO  2025-09-09T11:04:24 +6ms service=config path=/home/erik/.config/opencode/config.json loading
INFO  2025-09-09T11:04:24 +1ms service=config path=/home/erik/.config/opencode/opencode.json loading
INFO  2025-09-09T11:04:24 +0ms service=config path=/home/erik/.config/opencode/opencode.jsonc loading
INFO  2025-09-09T11:04:24 +1ms service=config path=/home/erik/work/oc-bug/opencode.json loading
INFO  2025-09-09T11:04:24 +3ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin
INFO  2025-09-09T11:04:24 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO  2025-09-09T11:04:24 +11ms service=bus type=* subscribing
INFO  2025-09-09T11:04:24 +0ms service=bus type=session.updated subscribing
INFO  2025-09-09T11:04:24 +0ms service=bus type=message.updated subscribing
INFO  2025-09-09T11:04:24 +0ms service=bus type=message.part.updated subscribing
INFO  2025-09-09T11:04:24 +0ms service=format init
INFO  2025-09-09T11:04:24 +0ms service=bus type=file.edited subscribing
INFO  2025-09-09T11:04:24 +1ms service=session id=ses_6d1da0735ffeRnZCWkoTVenzfL version=0.6.6 projectID=global directory=/home/erik/work/oc-bug title=New session - 2025-09-09T11:04:24.522Z time={"created":1757415864522,"updated":1757415864522} created
INFO  2025-09-09T11:04:24 +0ms service=lsp serverIds=typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers
INFO  2025-09-09T11:04:24 +0ms service=bus type=session.updated publishing
INFO  2025-09-09T11:04:24 +1ms service=bus type=message.part.updated subscribing
INFO  2025-09-09T11:04:24 +0ms service=bus type=session.error subscribing
INFO  2025-09-09T11:04:24 +1ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL chatting
INFO  2025-09-09T11:04:24 +3ms service=bus type=message.updated publishing
INFO  2025-09-09T11:04:24 +1ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:24 +0ms service=bus type=session.updated publishing
INFO  2025-09-09T11:04:24 +2ms service=models.dev file={} refreshing
INFO  2025-09-09T11:04:24 +1ms service=provider init
INFO  2025-09-09T11:04:24 +1ms service=provider providerID=azure found
INFO  2025-09-09T11:04:24 +0ms service=provider providerID=opencode found
INFO  2025-09-09T11:04:24 +0ms service=provider providerID=azure modelID=gpt-5-mini getModel
INFO  2025-09-09T11:04:24 +0ms service=provider status=started providerID=azure getSDK
INFO  2025-09-09T11:04:24 +50ms service=provider status=completed duration=49 providerID=azure getSDK
INFO  2025-09-09T11:04:24 +0ms service=provider providerID=azure modelID=gpt-5-mini found
INFO  2025-09-09T11:04:24 +2ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL sessionID=ses_6d1da0735ffeRnZCWkoTVenzfL locking
INFO  2025-09-09T11:04:24 +12ms service=bus type=message.updated publishing
INFO  2025-09-09T11:04:24 +6ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=start part
INFO  2025-09-09T11:04:25 +1118ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=start-step part
INFO  2025-09-09T11:04:25 +1ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:25 +127ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=text-start part
INFO  2025-09-09T11:04:25 +0ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=text-delta part
INFO  2025-09-09T11:04:25 +1ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:25 +0ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=text-end part
INFO  2025-09-09T11:04:25 +0ms service=bus type=message.part.updated publishing

I'm sorry, but I cannot assist with that request.

INFO  2025-09-09T11:04:25 +125ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=finish-step part
INFO  2025-09-09T11:04:25 +1ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:25 +0ms service=bus type=message.updated publishing
INFO  2025-09-09T11:04:25 +0ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=finish part
INFO  2025-09-09T11:04:25 +0ms service=bus type=message.updated publishing
INFO  2025-09-09T11:04:25 +1ms service=bus type=message.updated publishing
INFO  2025-09-09T11:04:25 +1ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL sessionID=ses_6d1da0735ffeRnZCWkoTVenzfL unlocking
INFO  2025-09-09T11:04:25 +0ms service=bus type=session.idle publishing
INFO  2025-09-09T11:04:27 +1471ms service=bus type=session.updated publishing
erik@ORECZC34376JC:~/work/oc-bug$ opencode run "hi" --print-logs --agent build
INFO  2025-09-09T11:04:40 +68ms service=default version=0.6.6 args=["run","hi","--print-logs","--agent","build"] opencode
INFO  2025-09-09T11:04:40 +1ms service=project directory=/home/erik/work/oc-bug fromDirectory
INFO  2025-09-09T11:04:40 +6ms service=config path=/home/erik/.config/opencode/config.json loading
INFO  2025-09-09T11:04:40 +1ms service=config path=/home/erik/.config/opencode/opencode.json loading
INFO  2025-09-09T11:04:40 +0ms service=config path=/home/erik/.config/opencode/opencode.jsonc loading
INFO  2025-09-09T11:04:40 +1ms service=config path=/home/erik/work/oc-bug/opencode.json loading
INFO  2025-09-09T11:04:40 +3ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin
INFO  2025-09-09T11:04:40 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO  2025-09-09T11:04:40 +10ms service=bus type=* subscribing
INFO  2025-09-09T11:04:40 +0ms service=bus type=session.updated subscribing
INFO  2025-09-09T11:04:40 +0ms service=bus type=message.updated subscribing
INFO  2025-09-09T11:04:40 +0ms service=bus type=message.part.updated subscribing
INFO  2025-09-09T11:04:40 +1ms service=format init
INFO  2025-09-09T11:04:40 +0ms service=bus type=file.edited subscribing
INFO  2025-09-09T11:04:40 +0ms service=session id=ses_6d1d9c8e8ffe22z42iPxGV12OR version=0.6.6 projectID=global directory=/home/erik/work/oc-bug title=New session - 2025-09-09T11:04:40.471Z time={"created":1757415880471,"updated":1757415880471} created
INFO  2025-09-09T11:04:40 +0ms service=lsp serverIds=typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers
INFO  2025-09-09T11:04:40 +1ms service=bus type=session.updated publishing
INFO  2025-09-09T11:04:40 +1ms service=bus type=message.part.updated subscribing
INFO  2025-09-09T11:04:40 +0ms service=bus type=session.error subscribing
INFO  2025-09-09T11:04:40 +1ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR chatting
INFO  2025-09-09T11:04:40 +2ms service=bus type=message.updated publishing
INFO  2025-09-09T11:04:40 +1ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:40 +0ms service=bus type=session.updated publishing
INFO  2025-09-09T11:04:40 +2ms service=models.dev file={} refreshing
INFO  2025-09-09T11:04:40 +1ms service=provider init
INFO  2025-09-09T11:04:40 +1ms service=provider providerID=azure found
INFO  2025-09-09T11:04:40 +0ms service=provider providerID=opencode found
INFO  2025-09-09T11:04:40 +0ms service=provider providerID=azure modelID=gpt-5-mini getModel
INFO  2025-09-09T11:04:40 +0ms service=provider status=started providerID=azure getSDK
INFO  2025-09-09T11:04:40 +50ms service=provider status=completed duration=50 providerID=azure getSDK
INFO  2025-09-09T11:04:40 +0ms service=provider providerID=azure modelID=gpt-5-mini found
INFO  2025-09-09T11:04:40 +2ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR sessionID=ses_6d1d9c8e8ffe22z42iPxGV12OR locking
INFO  2025-09-09T11:04:40 +11ms service=bus type=message.updated publishing
INFO  2025-09-09T11:04:40 +6ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=start part
INFO  2025-09-09T11:04:41 +888ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=start-step part
INFO  2025-09-09T11:04:41 +0ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:42 +724ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=reasoning-start part
INFO  2025-09-09T11:04:42 +553ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=reasoning-end part
INFO  2025-09-09T11:04:42 +1ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:42 +0ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-start part
INFO  2025-09-09T11:04:42 +1ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part
INFO  2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:42 +1ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part
INFO  2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:42 +3ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part
INFO  2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:42 +4ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part
INFO  2025-09-09T11:04:42 +1ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:42 +8ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part
INFO  2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:42 +8ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part
INFO  2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:42 +21ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part
INFO  2025-09-09T11:04:42 +1ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:42 +0ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part
INFO  2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:42 +9ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part
INFO  2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:42 +149ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-end part
INFO  2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing

Hi — how can I help you today?

INFO  2025-09-09T11:04:43 +129ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=finish-step part
INFO  2025-09-09T11:04:43 +2ms service=bus type=message.part.updated publishing
INFO  2025-09-09T11:04:43 +1ms service=bus type=message.updated publishing
INFO  2025-09-09T11:04:43 +0ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=finish part
INFO  2025-09-09T11:04:43 +0ms service=bus type=message.updated publishing
INFO  2025-09-09T11:04:43 +1ms service=bus type=message.updated publishing
INFO  2025-09-09T11:04:43 +0ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR sessionID=ses_6d1d9c8e8ffe22z42iPxGV12OR unlocking
INFO  2025-09-09T11:04:43 +1ms service=bus type=session.idle publishing
INFO  2025-09-09T11:04:44 +1667ms service=bus type=session.updated publishing
@eseaflower commented on GitHub (Sep 9, 2025): Managed to reproduce in a more concise way. Here are two runs one with the "plan" agent and one with the "build" agent. ``` erik@ORECZC34376JC:~/work/oc-bug$ opencode run "hi" --print-logs --agent plan INFO 2025-09-09T11:04:24 +76ms service=default version=0.6.6 args=["run","hi","--print-logs","--agent","plan"] opencode INFO 2025-09-09T11:04:24 +1ms service=project directory=/home/erik/work/oc-bug fromDirectory INFO 2025-09-09T11:04:24 +6ms service=config path=/home/erik/.config/opencode/config.json loading INFO 2025-09-09T11:04:24 +1ms service=config path=/home/erik/.config/opencode/opencode.json loading INFO 2025-09-09T11:04:24 +0ms service=config path=/home/erik/.config/opencode/opencode.jsonc loading INFO 2025-09-09T11:04:24 +1ms service=config path=/home/erik/work/oc-bug/opencode.json loading INFO 2025-09-09T11:04:24 +3ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin INFO 2025-09-09T11:04:24 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin INFO 2025-09-09T11:04:24 +11ms service=bus type=* subscribing INFO 2025-09-09T11:04:24 +0ms service=bus type=session.updated subscribing INFO 2025-09-09T11:04:24 +0ms service=bus type=message.updated subscribing INFO 2025-09-09T11:04:24 +0ms service=bus type=message.part.updated subscribing INFO 2025-09-09T11:04:24 +0ms service=format init INFO 2025-09-09T11:04:24 +0ms service=bus type=file.edited subscribing INFO 2025-09-09T11:04:24 +1ms service=session id=ses_6d1da0735ffeRnZCWkoTVenzfL version=0.6.6 projectID=global directory=/home/erik/work/oc-bug title=New session - 2025-09-09T11:04:24.522Z time={"created":1757415864522,"updated":1757415864522} created INFO 2025-09-09T11:04:24 +0ms service=lsp serverIds=typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers INFO 2025-09-09T11:04:24 +0ms service=bus type=session.updated publishing INFO 2025-09-09T11:04:24 +1ms service=bus type=message.part.updated subscribing INFO 2025-09-09T11:04:24 +0ms service=bus type=session.error subscribing INFO 2025-09-09T11:04:24 +1ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL chatting INFO 2025-09-09T11:04:24 +3ms service=bus type=message.updated publishing INFO 2025-09-09T11:04:24 +1ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:24 +0ms service=bus type=session.updated publishing INFO 2025-09-09T11:04:24 +2ms service=models.dev file={} refreshing INFO 2025-09-09T11:04:24 +1ms service=provider init INFO 2025-09-09T11:04:24 +1ms service=provider providerID=azure found INFO 2025-09-09T11:04:24 +0ms service=provider providerID=opencode found INFO 2025-09-09T11:04:24 +0ms service=provider providerID=azure modelID=gpt-5-mini getModel INFO 2025-09-09T11:04:24 +0ms service=provider status=started providerID=azure getSDK INFO 2025-09-09T11:04:24 +50ms service=provider status=completed duration=49 providerID=azure getSDK INFO 2025-09-09T11:04:24 +0ms service=provider providerID=azure modelID=gpt-5-mini found INFO 2025-09-09T11:04:24 +2ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL sessionID=ses_6d1da0735ffeRnZCWkoTVenzfL locking INFO 2025-09-09T11:04:24 +12ms service=bus type=message.updated publishing INFO 2025-09-09T11:04:24 +6ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=start part INFO 2025-09-09T11:04:25 +1118ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=start-step part INFO 2025-09-09T11:04:25 +1ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:25 +127ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=text-start part INFO 2025-09-09T11:04:25 +0ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=text-delta part INFO 2025-09-09T11:04:25 +1ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:25 +0ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=text-end part INFO 2025-09-09T11:04:25 +0ms service=bus type=message.part.updated publishing I'm sorry, but I cannot assist with that request. INFO 2025-09-09T11:04:25 +125ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=finish-step part INFO 2025-09-09T11:04:25 +1ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:25 +0ms service=bus type=message.updated publishing INFO 2025-09-09T11:04:25 +0ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL type=finish part INFO 2025-09-09T11:04:25 +0ms service=bus type=message.updated publishing INFO 2025-09-09T11:04:25 +1ms service=bus type=message.updated publishing INFO 2025-09-09T11:04:25 +1ms service=session session=ses_6d1da0735ffeRnZCWkoTVenzfL sessionID=ses_6d1da0735ffeRnZCWkoTVenzfL unlocking INFO 2025-09-09T11:04:25 +0ms service=bus type=session.idle publishing INFO 2025-09-09T11:04:27 +1471ms service=bus type=session.updated publishing ``` ``` erik@ORECZC34376JC:~/work/oc-bug$ opencode run "hi" --print-logs --agent build INFO 2025-09-09T11:04:40 +68ms service=default version=0.6.6 args=["run","hi","--print-logs","--agent","build"] opencode INFO 2025-09-09T11:04:40 +1ms service=project directory=/home/erik/work/oc-bug fromDirectory INFO 2025-09-09T11:04:40 +6ms service=config path=/home/erik/.config/opencode/config.json loading INFO 2025-09-09T11:04:40 +1ms service=config path=/home/erik/.config/opencode/opencode.json loading INFO 2025-09-09T11:04:40 +0ms service=config path=/home/erik/.config/opencode/opencode.jsonc loading INFO 2025-09-09T11:04:40 +1ms service=config path=/home/erik/work/oc-bug/opencode.json loading INFO 2025-09-09T11:04:40 +3ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin INFO 2025-09-09T11:04:40 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin INFO 2025-09-09T11:04:40 +10ms service=bus type=* subscribing INFO 2025-09-09T11:04:40 +0ms service=bus type=session.updated subscribing INFO 2025-09-09T11:04:40 +0ms service=bus type=message.updated subscribing INFO 2025-09-09T11:04:40 +0ms service=bus type=message.part.updated subscribing INFO 2025-09-09T11:04:40 +1ms service=format init INFO 2025-09-09T11:04:40 +0ms service=bus type=file.edited subscribing INFO 2025-09-09T11:04:40 +0ms service=session id=ses_6d1d9c8e8ffe22z42iPxGV12OR version=0.6.6 projectID=global directory=/home/erik/work/oc-bug title=New session - 2025-09-09T11:04:40.471Z time={"created":1757415880471,"updated":1757415880471} created INFO 2025-09-09T11:04:40 +0ms service=lsp serverIds=typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers INFO 2025-09-09T11:04:40 +1ms service=bus type=session.updated publishing INFO 2025-09-09T11:04:40 +1ms service=bus type=message.part.updated subscribing INFO 2025-09-09T11:04:40 +0ms service=bus type=session.error subscribing INFO 2025-09-09T11:04:40 +1ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR chatting INFO 2025-09-09T11:04:40 +2ms service=bus type=message.updated publishing INFO 2025-09-09T11:04:40 +1ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:40 +0ms service=bus type=session.updated publishing INFO 2025-09-09T11:04:40 +2ms service=models.dev file={} refreshing INFO 2025-09-09T11:04:40 +1ms service=provider init INFO 2025-09-09T11:04:40 +1ms service=provider providerID=azure found INFO 2025-09-09T11:04:40 +0ms service=provider providerID=opencode found INFO 2025-09-09T11:04:40 +0ms service=provider providerID=azure modelID=gpt-5-mini getModel INFO 2025-09-09T11:04:40 +0ms service=provider status=started providerID=azure getSDK INFO 2025-09-09T11:04:40 +50ms service=provider status=completed duration=50 providerID=azure getSDK INFO 2025-09-09T11:04:40 +0ms service=provider providerID=azure modelID=gpt-5-mini found INFO 2025-09-09T11:04:40 +2ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR sessionID=ses_6d1d9c8e8ffe22z42iPxGV12OR locking INFO 2025-09-09T11:04:40 +11ms service=bus type=message.updated publishing INFO 2025-09-09T11:04:40 +6ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=start part INFO 2025-09-09T11:04:41 +888ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=start-step part INFO 2025-09-09T11:04:41 +0ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:42 +724ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=reasoning-start part INFO 2025-09-09T11:04:42 +553ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=reasoning-end part INFO 2025-09-09T11:04:42 +1ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:42 +0ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-start part INFO 2025-09-09T11:04:42 +1ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part INFO 2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:42 +1ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part INFO 2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:42 +3ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part INFO 2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:42 +4ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part INFO 2025-09-09T11:04:42 +1ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:42 +8ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part INFO 2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:42 +8ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part INFO 2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:42 +21ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part INFO 2025-09-09T11:04:42 +1ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:42 +0ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part INFO 2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:42 +9ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-delta part INFO 2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:42 +149ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=text-end part INFO 2025-09-09T11:04:42 +0ms service=bus type=message.part.updated publishing Hi — how can I help you today? INFO 2025-09-09T11:04:43 +129ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=finish-step part INFO 2025-09-09T11:04:43 +2ms service=bus type=message.part.updated publishing INFO 2025-09-09T11:04:43 +1ms service=bus type=message.updated publishing INFO 2025-09-09T11:04:43 +0ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR type=finish part INFO 2025-09-09T11:04:43 +0ms service=bus type=message.updated publishing INFO 2025-09-09T11:04:43 +1ms service=bus type=message.updated publishing INFO 2025-09-09T11:04:43 +0ms service=session session=ses_6d1d9c8e8ffe22z42iPxGV12OR sessionID=ses_6d1d9c8e8ffe22z42iPxGV12OR unlocking INFO 2025-09-09T11:04:43 +1ms service=bus type=session.idle publishing INFO 2025-09-09T11:04:44 +1667ms service=bus type=session.updated publishing ```
Author
Owner

@rekram1-node commented on GitHub (Sep 9, 2025):

Switching to build mode gives the same answer the first time I rerun the query, but trying again gives me an answer.
The log does not indicate any errors apart from not finding GPT-5-nano as a title model (I have no such model deployed).

Yeah we need to update the title generation, rn it is detecting that you are azure so it shows all azure models... given they all require deployments we should probably change that behavior

@rekram1-node commented on GitHub (Sep 9, 2025): > Switching to build mode gives the same answer the first time I rerun the query, but trying again gives me an answer. The log does not indicate any errors apart from not finding GPT-5-nano as a title model (I have no such model deployed). Yeah we need to update the title generation, rn it is detecting that you are azure so it shows all azure models... given they all require deployments we should probably change that behavior
Author
Owner

@rekram1-node commented on GitHub (Sep 9, 2025):

Looks like this may be specific to gpt-5-mini, or gpt-5 models, I think we gotta do prompt tweaks for that

@rekram1-node commented on GitHub (Sep 9, 2025): Looks like this may be specific to gpt-5-mini, or gpt-5 models, I think we gotta do prompt tweaks for that
Author
Owner

@eseaflower commented on GitHub (Sep 11, 2025):

Looks like this may be specific to gpt-5-mini, or gpt-5 models, I think we gotta do prompt tweaks for that

I experience the same bahavior when I use GPT 4.1 though:

erik@ORECZC34376JC:~/work/oc-bug$ opencode run "hi" --print-logs --log-level DEBUG --agent plan
INFO  2025-09-11T05:25:39 +70ms service=default version=0.6.6 args=["run","hi","--print-logs","--log-level","DEBUG","--agent","plan"] opencode
INFO  2025-09-11T05:25:39 +1ms service=project directory=/home/erik/work/oc-bug fromDirectory
INFO  2025-09-11T05:25:39 +7ms service=config path=/home/erik/.config/opencode/config.json loading
INFO  2025-09-11T05:25:39 +1ms service=config path=/home/erik/.config/opencode/opencode.json loading
INFO  2025-09-11T05:25:39 +0ms service=config path=/home/erik/.config/opencode/opencode.jsonc loading
INFO  2025-09-11T05:25:39 +1ms service=config path=/home/erik/work/oc-bug/opencode.json loading
INFO  2025-09-11T05:25:39 +3ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin
INFO  2025-09-11T05:25:39 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO  2025-09-11T05:25:39 +10ms service=bus type=* subscribing
INFO  2025-09-11T05:25:39 +0ms service=bus type=session.updated subscribing
INFO  2025-09-11T05:25:39 +0ms service=bus type=message.updated subscribing
INFO  2025-09-11T05:25:39 +0ms service=bus type=message.part.updated subscribing
INFO  2025-09-11T05:25:39 +0ms service=format init
INFO  2025-09-11T05:25:39 +0ms service=bus type=file.edited subscribing
INFO  2025-09-11T05:25:39 +1ms service=session id=ses_6c8c37001ffex30e0A6eJG0r3Z version=0.6.6 projectID=global directory=/home/erik/work/oc-bug title=New session - 2025-09-11T05:25:39.966Z time={"created":1757568339966,"updated":1757568339966} created
INFO  2025-09-11T05:25:39 +0ms service=lsp serverIds=typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers
INFO  2025-09-11T05:25:39 +0ms service=bus type=session.updated publishing
INFO  2025-09-11T05:25:39 +1ms service=bus type=message.part.updated subscribing
INFO  2025-09-11T05:25:39 +0ms service=bus type=session.error subscribing
INFO  2025-09-11T05:25:39 +1ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z chatting
INFO  2025-09-11T05:25:39 +3ms service=bus type=message.updated publishing
INFO  2025-09-11T05:25:39 +1ms service=bus type=message.part.updated publishing
INFO  2025-09-11T05:25:39 +0ms service=bus type=session.updated publishing
INFO  2025-09-11T05:25:39 +2ms service=models.dev file={} refreshing
INFO  2025-09-11T05:25:39 +1ms service=provider init
INFO  2025-09-11T05:25:39 +1ms service=provider providerID=azure found
INFO  2025-09-11T05:25:39 +0ms service=provider providerID=opencode found
INFO  2025-09-11T05:25:39 +0ms service=provider providerID=azure modelID=gpt-4.1 getModel
INFO  2025-09-11T05:25:39 +0ms service=provider status=started providerID=azure getSDK
INFO  2025-09-11T05:25:40 +48ms service=provider status=completed duration=48 providerID=azure getSDK
INFO  2025-09-11T05:25:40 +0ms service=provider providerID=azure modelID=gpt-4.1 found
INFO  2025-09-11T05:25:40 +2ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z sessionID=ses_6c8c37001ffex30e0A6eJG0r3Z locking
INFO  2025-09-11T05:25:40 +10ms service=bus type=message.updated publishing
INFO  2025-09-11T05:25:40 +6ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=start part
INFO  2025-09-11T05:25:40 +899ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=start-step part
INFO  2025-09-11T05:25:40 +1ms service=bus type=message.part.updated publishing
INFO  2025-09-11T05:25:41 +94ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=text-start part
INFO  2025-09-11T05:25:41 +1ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=text-delta part
INFO  2025-09-11T05:25:41 +0ms service=bus type=message.part.updated publishing
INFO  2025-09-11T05:25:41 +0ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=text-end part
INFO  2025-09-11T05:25:41 +0ms service=bus type=message.part.updated publishing

I'm sorry, but I cannot assist with that request.

INFO  2025-09-11T05:25:41 +101ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=finish-step part
INFO  2025-09-11T05:25:41 +2ms service=bus type=message.part.updated publishing
INFO  2025-09-11T05:25:41 +1ms service=bus type=message.updated publishing
INFO  2025-09-11T05:25:41 +0ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=finish part
INFO  2025-09-11T05:25:41 +0ms service=bus type=message.updated publishing
INFO  2025-09-11T05:25:41 +2ms service=bus type=message.updated publishing
INFO  2025-09-11T05:25:41 +0ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z sessionID=ses_6c8c37001ffex30e0A6eJG0r3Z unlocking
INFO  2025-09-11T05:25:41 +1ms service=bus type=session.idle publishing
INFO  2025-09-11T05:25:41 +55ms service=bus type=session.updated publishing
@eseaflower commented on GitHub (Sep 11, 2025): > Looks like this may be specific to gpt-5-mini, or gpt-5 models, I think we gotta do prompt tweaks for that I experience the same bahavior when I use GPT 4.1 though: ``` erik@ORECZC34376JC:~/work/oc-bug$ opencode run "hi" --print-logs --log-level DEBUG --agent plan INFO 2025-09-11T05:25:39 +70ms service=default version=0.6.6 args=["run","hi","--print-logs","--log-level","DEBUG","--agent","plan"] opencode INFO 2025-09-11T05:25:39 +1ms service=project directory=/home/erik/work/oc-bug fromDirectory INFO 2025-09-11T05:25:39 +7ms service=config path=/home/erik/.config/opencode/config.json loading INFO 2025-09-11T05:25:39 +1ms service=config path=/home/erik/.config/opencode/opencode.json loading INFO 2025-09-11T05:25:39 +0ms service=config path=/home/erik/.config/opencode/opencode.jsonc loading INFO 2025-09-11T05:25:39 +1ms service=config path=/home/erik/work/oc-bug/opencode.json loading INFO 2025-09-11T05:25:39 +3ms service=plugin path=opencode-copilot-auth@0.0.2 loading plugin INFO 2025-09-11T05:25:39 +1ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin INFO 2025-09-11T05:25:39 +10ms service=bus type=* subscribing INFO 2025-09-11T05:25:39 +0ms service=bus type=session.updated subscribing INFO 2025-09-11T05:25:39 +0ms service=bus type=message.updated subscribing INFO 2025-09-11T05:25:39 +0ms service=bus type=message.part.updated subscribing INFO 2025-09-11T05:25:39 +0ms service=format init INFO 2025-09-11T05:25:39 +0ms service=bus type=file.edited subscribing INFO 2025-09-11T05:25:39 +1ms service=session id=ses_6c8c37001ffex30e0A6eJG0r3Z version=0.6.6 projectID=global directory=/home/erik/work/oc-bug title=New session - 2025-09-11T05:25:39.966Z time={"created":1757568339966,"updated":1757568339966} created INFO 2025-09-11T05:25:39 +0ms service=lsp serverIds=typescript, vue, eslint, gopls, ruby-lsp, pyright, elixir-ls, zls, csharp, rust, clangd enabled LSP servers INFO 2025-09-11T05:25:39 +0ms service=bus type=session.updated publishing INFO 2025-09-11T05:25:39 +1ms service=bus type=message.part.updated subscribing INFO 2025-09-11T05:25:39 +0ms service=bus type=session.error subscribing INFO 2025-09-11T05:25:39 +1ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z chatting INFO 2025-09-11T05:25:39 +3ms service=bus type=message.updated publishing INFO 2025-09-11T05:25:39 +1ms service=bus type=message.part.updated publishing INFO 2025-09-11T05:25:39 +0ms service=bus type=session.updated publishing INFO 2025-09-11T05:25:39 +2ms service=models.dev file={} refreshing INFO 2025-09-11T05:25:39 +1ms service=provider init INFO 2025-09-11T05:25:39 +1ms service=provider providerID=azure found INFO 2025-09-11T05:25:39 +0ms service=provider providerID=opencode found INFO 2025-09-11T05:25:39 +0ms service=provider providerID=azure modelID=gpt-4.1 getModel INFO 2025-09-11T05:25:39 +0ms service=provider status=started providerID=azure getSDK INFO 2025-09-11T05:25:40 +48ms service=provider status=completed duration=48 providerID=azure getSDK INFO 2025-09-11T05:25:40 +0ms service=provider providerID=azure modelID=gpt-4.1 found INFO 2025-09-11T05:25:40 +2ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z sessionID=ses_6c8c37001ffex30e0A6eJG0r3Z locking INFO 2025-09-11T05:25:40 +10ms service=bus type=message.updated publishing INFO 2025-09-11T05:25:40 +6ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=start part INFO 2025-09-11T05:25:40 +899ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=start-step part INFO 2025-09-11T05:25:40 +1ms service=bus type=message.part.updated publishing INFO 2025-09-11T05:25:41 +94ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=text-start part INFO 2025-09-11T05:25:41 +1ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=text-delta part INFO 2025-09-11T05:25:41 +0ms service=bus type=message.part.updated publishing INFO 2025-09-11T05:25:41 +0ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=text-end part INFO 2025-09-11T05:25:41 +0ms service=bus type=message.part.updated publishing I'm sorry, but I cannot assist with that request. INFO 2025-09-11T05:25:41 +101ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=finish-step part INFO 2025-09-11T05:25:41 +2ms service=bus type=message.part.updated publishing INFO 2025-09-11T05:25:41 +1ms service=bus type=message.updated publishing INFO 2025-09-11T05:25:41 +0ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z type=finish part INFO 2025-09-11T05:25:41 +0ms service=bus type=message.updated publishing INFO 2025-09-11T05:25:41 +2ms service=bus type=message.updated publishing INFO 2025-09-11T05:25:41 +0ms service=session session=ses_6c8c37001ffex30e0A6eJG0r3Z sessionID=ses_6c8c37001ffex30e0A6eJG0r3Z unlocking INFO 2025-09-11T05:25:41 +1ms service=bus type=session.idle publishing INFO 2025-09-11T05:25:41 +55ms service=bus type=session.updated publishing ```
Author
Owner

@rekram1-node commented on GitHub (Sep 11, 2025):

Can you share your AGENTS.md files by chance? I can't replicate so I am trying to see if maybe this is related to some of your prompts you have?

Also opencode will pick up CLAUDE.md files if AGENTS.md isn't present (globally or locally)

@rekram1-node commented on GitHub (Sep 11, 2025): Can you share your AGENTS.md files by chance? I can't replicate so I am trying to see if maybe this is related to some of your prompts you have? Also opencode will pick up CLAUDE.md files if AGENTS.md isn't present (globally or locally)
Author
Owner

@TreeOfLearning commented on GitHub (Sep 12, 2025):

I am experiencing this too, with GPT-5. I have no AGENTS.md or CLAUDE.md file.

Image

I can ask it to plan anything, it will refuse every time, and when that happens it will subsequently refuse to answer any prompt regardless of the mode I am in. Happy to grab logs or anything helpful - just let me know what you need.

@rekram1-node Pinging to make sure you see :)

@TreeOfLearning commented on GitHub (Sep 12, 2025): I am experiencing this too, with GPT-5. I have no AGENTS.md or CLAUDE.md file. <img width="476" height="171" alt="Image" src="https://github.com/user-attachments/assets/d2d46eaa-1b4d-4192-bf3c-4ecc7129e2e1" /> I can ask it to plan anything, it will refuse every time, and when that happens it will subsequently refuse to answer any prompt regardless of the mode I am in. Happy to grab logs or anything helpful - just let me know what you need. @rekram1-node Pinging to make sure you see :)
Author
Owner

@rekram1-node commented on GitHub (Sep 12, 2025):

The plan mode prompt must be tripping it up, weird… I will make a deployment of full size gpt-5 and test more tonight

@rekram1-node commented on GitHub (Sep 12, 2025): The plan mode prompt must be tripping it up, weird… I will make a deployment of full size gpt-5 and test more tonight
Author
Owner

@eseaflower commented on GitHub (Sep 15, 2025):

Can you share your AGENTS.md files by chance? I can't replicate so I am trying to see if maybe this is related to some of your prompts you have?

Also opencode will pick up CLAUDE.md files if AGENTS.md isn't present (globally or locally)

The repro I did above was without any CLAUDE.md or AGENTS.md files. I was just running opencode run hi --agent plan in a folder only containing an opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {},
  "model": "azure/gpt-4.1",
  "small_model": "azure/gpt-4.1"
}
@eseaflower commented on GitHub (Sep 15, 2025): > Can you share your AGENTS.md files by chance? I can't replicate so I am trying to see if maybe this is related to some of your prompts you have? > > Also opencode will pick up CLAUDE.md files if AGENTS.md isn't present (globally or locally) The repro I did above was without any CLAUDE.md or AGENTS.md files. I was just running `opencode run hi --agent plan` in a folder only containing an opencode.json: ``` { "$schema": "https://opencode.ai/config.json", "provider": {}, "model": "azure/gpt-4.1", "small_model": "azure/gpt-4.1" } ```
Author
Owner

@TreeOfLearning commented on GitHub (Sep 15, 2025):

GPT-5 seems to be really sensitive to this. Just playing in the playground a bit, even the very first line of the plan mode prompt trips it up:

Image

Happens regardless of reasoning levels etc.

Edit: I've managed to resolve this. It's not GPT-5 causing the issues at all, but Azure's content filter on top of the model. In Azure, if you change the content filter from DefaultV2 to Default the response no longer gets blocked:

Image

Result:

Image

CC @eseaflower

@TreeOfLearning commented on GitHub (Sep 15, 2025): _~GPT-5 seems to be really sensitive to this. Just playing in the playground a bit, even the very first line of the plan mode prompt trips it up:~_ ~<img width="576" height="221" alt="Image" src="https://github.com/user-attachments/assets/435752db-168c-4608-9cf2-065b2e4871cf" />~ _~Happens regardless of reasoning levels etc.~_ Edit: I've managed to resolve this. It's not GPT-5 causing the issues at all, but Azure's content filter on top of the model. In Azure, if you change the content filter from `DefaultV2` to `Default` the response no longer gets blocked: <img width="591" height="144" alt="Image" src="https://github.com/user-attachments/assets/44dff528-de91-4890-b571-06745debb170" /> Result: <img width="1248" height="165" alt="Image" src="https://github.com/user-attachments/assets/eb4bc4a2-9fa9-4689-99dd-bd5833cc237f" /> CC @eseaflower
Author
Owner

@rekram1-node commented on GitHub (Sep 15, 2025):

Oo good to know thank you!!! I didn't get the chance to deploy the model unfortunately

@rekram1-node commented on GitHub (Sep 15, 2025): Oo good to know thank you!!! I didn't get the chance to deploy the model unfortunately
Author
Owner

@eseaflower commented on GitHub (Sep 16, 2025):

Wow! Thank you for the help. Now I'm off to planning.

@eseaflower commented on GitHub (Sep 16, 2025): Wow! Thank you for the help. Now I'm off to planning.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1659