-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Description
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.