Chat didn't get send #167

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

Originally created by @Jawkx on GitHub (Jun 20, 2025).

Originally assigned to: @thdxr on GitHub.

Not sure what might be the issue here, but chat is not getting sent when I try to use it with openrouter, no error was shown

https://github.com/user-attachments/assets/43b0a1cb-bcee-400f-a6dd-29eb8c8bea81

I also copied the logs from opencode --print-logs

INFO  2025-06-20T08:19:42 +24ms service=default version=0.1.108 args=--print-logs opencode
INFO  2025-06-20T08:19:42 +0ms service=app cwd=/Users/jaw/Projects/personal/promptforge creating
INFO  2025-06-20T08:19:42 +1ms service=app git=/Users/jaw/Projects/personal/promptforge git
INFO  2025-06-20T08:19:42 +2ms service=app name=provider registering service
INFO  2025-06-20T08:19:42 +1ms service=app name=config registering service
INFO  2025-06-20T08:19:42 +2ms service=config theme=opencode $schema=https://opencode.ai/config.json provider=[object Object] loaded
INFO  2025-06-20T08:19:42 +1ms service=models.dev refreshing
INFO  2025-06-20T08:19:42 +0ms service=provider init
INFO  2025-06-20T08:19:42 +1ms service=provider providerID=deepseek found
INFO  2025-06-20T08:19:42 +0ms service=provider providerID=groq found
INFO  2025-06-20T08:19:42 +0ms service=provider providerID=openrouter found
INFO  2025-06-20T08:19:42 +0ms service=app name=share registering service
INFO  2025-06-20T08:19:42 +0ms service=bus type=storage.write subscribing
INFO  2025-06-20T08:19:42 +0ms service=app name=bus registering service
INFO  2025-06-20T08:19:42 +22ms service=server method=POST path=/config_get request
INFO  2025-06-20T08:19:42 +0ms service=server duration=0 response
INFO  2025-06-20T08:19:42 +1ms service=server method=GET path=/event request
INFO  2025-06-20T08:19:42 +0ms service=server event connected
INFO  2025-06-20T08:19:42 +1ms service=bus type=* subscribing
INFO  2025-06-20T08:19:42 +1ms service=server duration=2 response
INFO  2025-06-20T08:19:42 +6ms service=server method=POST path=/provider_list request
                                                                                     INFO  2025-06-20T08:19:42 +1ms service=server duration=1 response
                                                                                                                                                      INFO  2025-06-20T08:19:50 +6012ms service=bus type=* unsubscribing
INFO  2025-06-20T08:19:50 +0ms service=server event disconnected
INFO  2025-06-20T08:19:50 +2ms service=app name=session shutdown

Originally created by @Jawkx on GitHub (Jun 20, 2025). Originally assigned to: @thdxr on GitHub. Not sure what might be the issue here, but chat is not getting sent when I try to use it with openrouter, no error was shown https://github.com/user-attachments/assets/43b0a1cb-bcee-400f-a6dd-29eb8c8bea81 I also copied the logs from `opencode --print-logs` ``` INFO 2025-06-20T08:19:42 +24ms service=default version=0.1.108 args=--print-logs opencode INFO 2025-06-20T08:19:42 +0ms service=app cwd=/Users/jaw/Projects/personal/promptforge creating INFO 2025-06-20T08:19:42 +1ms service=app git=/Users/jaw/Projects/personal/promptforge git INFO 2025-06-20T08:19:42 +2ms service=app name=provider registering service INFO 2025-06-20T08:19:42 +1ms service=app name=config registering service INFO 2025-06-20T08:19:42 +2ms service=config theme=opencode $schema=https://opencode.ai/config.json provider=[object Object] loaded INFO 2025-06-20T08:19:42 +1ms service=models.dev refreshing INFO 2025-06-20T08:19:42 +0ms service=provider init INFO 2025-06-20T08:19:42 +1ms service=provider providerID=deepseek found INFO 2025-06-20T08:19:42 +0ms service=provider providerID=groq found INFO 2025-06-20T08:19:42 +0ms service=provider providerID=openrouter found INFO 2025-06-20T08:19:42 +0ms service=app name=share registering service INFO 2025-06-20T08:19:42 +0ms service=bus type=storage.write subscribing INFO 2025-06-20T08:19:42 +0ms service=app name=bus registering service INFO 2025-06-20T08:19:42 +22ms service=server method=POST path=/config_get request INFO 2025-06-20T08:19:42 +0ms service=server duration=0 response INFO 2025-06-20T08:19:42 +1ms service=server method=GET path=/event request INFO 2025-06-20T08:19:42 +0ms service=server event connected INFO 2025-06-20T08:19:42 +1ms service=bus type=* subscribing INFO 2025-06-20T08:19:42 +1ms service=server duration=2 response INFO 2025-06-20T08:19:42 +6ms service=server method=POST path=/provider_list request INFO 2025-06-20T08:19:42 +1ms service=server duration=1 response INFO 2025-06-20T08:19:50 +6012ms service=bus type=* unsubscribing INFO 2025-06-20T08:19:50 +0ms service=server event disconnected INFO 2025-06-20T08:19:50 +2ms service=app name=session shutdown ```
yindo closed this issue 2026-02-16 17:25:31 -05:00
Author
Owner

@acambas commented on GitHub (Jun 20, 2025):

I'm getting the exact same issue, i'm using openai as the provider

here are my logs:

INFO  2025-06-20T15:27:49 +21ms service=default version=0.1.109 args=--print-logs opencode
INFO  2025-06-20T15:27:49 +0ms service=app cwd=/Users/sasha.cambas/dotfiles creating
INFO  2025-06-20T15:27:49 +1ms service=app git=/Users/sasha.cambas/dotfiles git
INFO  2025-06-20T15:27:49 +2ms service=app name=provider registering service
INFO  2025-06-20T15:27:49 +0ms service=app name=config registering service
INFO  2025-06-20T15:27:49 +2ms service=config $schema=https://opencode.ai/config.json theme=opencode model=openai/gpt-4.1 loaded
INFO  2025-06-20T15:27:49 +1ms service=models.dev refreshing
INFO  2025-06-20T15:27:49 +0ms service=provider init
INFO  2025-06-20T15:27:49 +1ms service=provider providerID=openai found
INFO  2025-06-20T15:27:49 +0ms service=app name=share registering service
INFO  2025-06-20T15:27:49 +0ms service=bus type=storage.write subscribing
INFO  2025-06-20T15:27:49 +0ms service=app name=bus registering service
INFO  2025-06-20T15:27:50 +402ms service=server method=POST path=/config_get request
INFO  2025-06-20T15:27:50 +0ms service=server duration=0 response
INFO  2025-06-20T15:27:50 +1ms service=server method=GET path=/event request
INFO  2025-06-20T15:27:50 +0ms service=server event connected
INFO  2025-06-20T15:27:50 +1ms service=bus type=* subscribing
INFO  2025-06-20T15:27:50 +1ms service=server duration=2 response
INFO  2025-06-20T15:27:50 +15ms service=server method=POST path=/provider_list request
                                                                                      INFO  2025-06-20T15:27:50 +1ms service=server duration=1 response
                                                                                                                                                       INFO  2025-06-20T15:28:18 +24032ms service=bus type=* unsubscribing
INFO  2025-06-20T15:28:18 +0ms service=server event disconnected
INFO  2025-06-20T15:28:18 +1ms service=app name=session shutdown

The issue is happening on my work mac m3 Pro, but on my personal m1 mac everything is working fine

@acambas commented on GitHub (Jun 20, 2025): I'm getting the exact same issue, i'm using openai as the provider here are my logs: ``` INFO 2025-06-20T15:27:49 +21ms service=default version=0.1.109 args=--print-logs opencode INFO 2025-06-20T15:27:49 +0ms service=app cwd=/Users/sasha.cambas/dotfiles creating INFO 2025-06-20T15:27:49 +1ms service=app git=/Users/sasha.cambas/dotfiles git INFO 2025-06-20T15:27:49 +2ms service=app name=provider registering service INFO 2025-06-20T15:27:49 +0ms service=app name=config registering service INFO 2025-06-20T15:27:49 +2ms service=config $schema=https://opencode.ai/config.json theme=opencode model=openai/gpt-4.1 loaded INFO 2025-06-20T15:27:49 +1ms service=models.dev refreshing INFO 2025-06-20T15:27:49 +0ms service=provider init INFO 2025-06-20T15:27:49 +1ms service=provider providerID=openai found INFO 2025-06-20T15:27:49 +0ms service=app name=share registering service INFO 2025-06-20T15:27:49 +0ms service=bus type=storage.write subscribing INFO 2025-06-20T15:27:49 +0ms service=app name=bus registering service INFO 2025-06-20T15:27:50 +402ms service=server method=POST path=/config_get request INFO 2025-06-20T15:27:50 +0ms service=server duration=0 response INFO 2025-06-20T15:27:50 +1ms service=server method=GET path=/event request INFO 2025-06-20T15:27:50 +0ms service=server event connected INFO 2025-06-20T15:27:50 +1ms service=bus type=* subscribing INFO 2025-06-20T15:27:50 +1ms service=server duration=2 response INFO 2025-06-20T15:27:50 +15ms service=server method=POST path=/provider_list request INFO 2025-06-20T15:27:50 +1ms service=server duration=1 response INFO 2025-06-20T15:28:18 +24032ms service=bus type=* unsubscribing INFO 2025-06-20T15:28:18 +0ms service=server event disconnected INFO 2025-06-20T15:28:18 +1ms service=app name=session shutdown ``` The issue is happening on my work mac m3 Pro, but on my personal m1 mac everything is working fine
Author
Owner

@geelen commented on GitHub (Jun 23, 2025):

Got the same thing myself. Completely blank VM, all I installed was node 22, installed OpenCode using curl -fsSL https://opencode.ai/install | bash then configured a Groq provider, and tried the prompt Write a haiku in HAIKU.md in an empty dir:

INFO  2025-06-23T06:40:49 +54ms service=default version=0.1.121 args=--print-logs opencode
INFO  2025-06-23T06:40:49 +0ms service=app cwd=/home/gmaddern/tmp creating
INFO  2025-06-23T06:40:49 +7ms service=app git
INFO  2025-06-23T06:40:49 +1ms service=app name=provider registering service
INFO  2025-06-23T06:40:49 +1ms service=app name=config registering service
INFO  2025-06-23T06:40:49 +2ms service=config loaded
INFO  2025-06-23T06:40:49 +2ms service=models.dev refreshing
INFO  2025-06-23T06:40:49 +0ms service=provider init
INFO  2025-06-23T06:40:49 +2ms service=provider providerID=groq found
INFO  2025-06-23T06:40:49 +1ms service=provider providerID=openai found
INFO  2025-06-23T06:40:49 +0ms service=app name=share registering service
INFO  2025-06-23T06:40:49 +0ms service=bus type=storage.write subscribing
INFO  2025-06-23T06:40:49 +0ms service=app name=bus registering service
INFO  2025-06-23T06:40:49 +104ms service=server method=POST path=/config_get request
INFO  2025-06-23T06:40:49 +0ms service=server duration=0 response
INFO  2025-06-23T06:40:49 +4ms service=server method=GET path=/event request
INFO  2025-06-23T06:40:49 +0ms service=server event connected
INFO  2025-06-23T06:40:49 +2ms service=bus type=* subscribing
INFO  2025-06-23T06:40:49 +2ms service=server duration=4 response
INFO  2025-06-23T06:40:49 +8ms service=server method=POST path=/provider_list request
                                                                                     INFO  2025-06-23T06:40:49 +2ms service=server duration=2 response
                                                       INFO  2025-06-23T06:42:33 +92687ms service=bus type=* unsubscribing
INFO  2025-06-23T06:42:33 +1ms service=server event disconnected
INFO  2025-06-23T06:42:33 +0ms service=app name=session shutdown\

Waited a few mins but still nothing.

@geelen commented on GitHub (Jun 23, 2025): Got the same thing myself. Completely blank VM, all I installed was node 22, installed OpenCode using `curl -fsSL https://opencode.ai/install | bash` then configured a Groq provider, and tried the prompt `Write a haiku in HAIKU.md` in an empty dir: ``` INFO 2025-06-23T06:40:49 +54ms service=default version=0.1.121 args=--print-logs opencode INFO 2025-06-23T06:40:49 +0ms service=app cwd=/home/gmaddern/tmp creating INFO 2025-06-23T06:40:49 +7ms service=app git INFO 2025-06-23T06:40:49 +1ms service=app name=provider registering service INFO 2025-06-23T06:40:49 +1ms service=app name=config registering service INFO 2025-06-23T06:40:49 +2ms service=config loaded INFO 2025-06-23T06:40:49 +2ms service=models.dev refreshing INFO 2025-06-23T06:40:49 +0ms service=provider init INFO 2025-06-23T06:40:49 +2ms service=provider providerID=groq found INFO 2025-06-23T06:40:49 +1ms service=provider providerID=openai found INFO 2025-06-23T06:40:49 +0ms service=app name=share registering service INFO 2025-06-23T06:40:49 +0ms service=bus type=storage.write subscribing INFO 2025-06-23T06:40:49 +0ms service=app name=bus registering service INFO 2025-06-23T06:40:49 +104ms service=server method=POST path=/config_get request INFO 2025-06-23T06:40:49 +0ms service=server duration=0 response INFO 2025-06-23T06:40:49 +4ms service=server method=GET path=/event request INFO 2025-06-23T06:40:49 +0ms service=server event connected INFO 2025-06-23T06:40:49 +2ms service=bus type=* subscribing INFO 2025-06-23T06:40:49 +2ms service=server duration=4 response INFO 2025-06-23T06:40:49 +8ms service=server method=POST path=/provider_list request INFO 2025-06-23T06:40:49 +2ms service=server duration=2 response INFO 2025-06-23T06:42:33 +92687ms service=bus type=* unsubscribing INFO 2025-06-23T06:42:33 +1ms service=server event disconnected INFO 2025-06-23T06:42:33 +0ms service=app name=session shutdown\ ``` Waited a few mins but still nothing.
Author
Owner

@Jawkx commented on GitHub (Jun 23, 2025):

@geelen , end up manage to fix the issue by clean uninstalling opencode, I think we might have installed the other version before, and they probably share some internal file name and there is a bug there.

I just fzf my whole mac, remove all files that have opencode in it, and then redownload it

@Jawkx commented on GitHub (Jun 23, 2025): @geelen , end up manage to fix the issue by clean uninstalling opencode, I think we might have installed the other version before, and they probably share some internal file name and there is a bug there. I just fzf my whole mac, remove all files that have `opencode` in it, and then redownload it
Author
Owner

@thdxr commented on GitHub (Jun 23, 2025):

if ayone still has this issue can they try on latest?

@thdxr commented on GitHub (Jun 23, 2025): if ayone still has this issue can they try on latest?
Author
Owner

@geelen commented on GitHub (Jun 23, 2025):

Now I'm seeing this:

Image

But switching to Llama 3.3 I get this:

Image

Which I think is #222

@geelen commented on GitHub (Jun 23, 2025): Now I'm seeing this: ![Image](https://github.com/user-attachments/assets/0f75a2e4-618f-404e-b28f-b374bc1c3447) But switching to Llama 3.3 I get this: ![Image](https://github.com/user-attachments/assets/5d6e1bc0-c5d9-4199-8d6d-abae849e91fd) Which I think is #222
Author
Owner

@thdxr commented on GitHub (Jun 23, 2025):

what model is the 400 on?

@thdxr commented on GitHub (Jun 23, 2025): what model is the 400 on?
Author
Owner

@geelen commented on GitHub (Jun 23, 2025):

Qwen3 32B (the main one I want to use), as well as Llama 4 Maverick & Scout.

I just saw it auto-update to 0.1.125 too so i just re-checked all 3 and no dice

@geelen commented on GitHub (Jun 23, 2025): Qwen3 32B (the main one I want to use), as well as Llama 4 Maverick & Scout. I just saw it auto-update to 0.1.125 too so i just re-checked all 3 and no dice
Author
Owner

@acambas commented on GitHub (Jun 25, 2025):

Heya, some updates on this, i've upgraded to latest version and ran it again and i'm getting a new error(so progress i guess), here are the logs:

INFO  2025-06-25T07:34:20 +0ms service=bus type=message.part.updated subscribing
INFO  2025-06-25T07:34:20 +1ms service=session session=ses_859fda9b3ffeP6GTAHUOEka9IP chatting
INFO  2025-06-25T07:34:20 +0ms service=app name=provider registering service
INFO  2025-06-25T07:34:20 +1ms service=models.dev refreshing
INFO  2025-06-25T07:34:20 +0ms service=provider init
INFO  2025-06-25T07:34:20 +2ms service=provider providerID=openai found
INFO  2025-06-25T07:34:20 +0ms service=provider providerID=openai modelID=gpt-4.1 getModel
INFO  2025-06-25T07:34:20 +0ms service=provider status=started providerID=openai getSDK
INFO  2025-06-25T07:34:20 +1ms service=provider status=completed duration=1 providerID=openai getSDK
ERROR 2025-06-25T07:34:20 +2ms service=default providerID=openai name=ProviderInitError message=ProviderInitError cause=ResolveMessage: Cannot find module '/Users/sasha.cambas/.cache/opencode/node_modules/@ai-sdk/openai' from '/$bunfs/root/opencode' fatal
Error: Unexpected error, check log file at  for more details

I've looked into this cache folder and seen that in fact there are no node_modules installed so i just ran npm install and tried the opencode again and it seems to be working now 😄

@acambas commented on GitHub (Jun 25, 2025): Heya, some updates on this, i've upgraded to latest version and ran it again and i'm getting a new error(so progress i guess), here are the logs: ``` INFO 2025-06-25T07:34:20 +0ms service=bus type=message.part.updated subscribing INFO 2025-06-25T07:34:20 +1ms service=session session=ses_859fda9b3ffeP6GTAHUOEka9IP chatting INFO 2025-06-25T07:34:20 +0ms service=app name=provider registering service INFO 2025-06-25T07:34:20 +1ms service=models.dev refreshing INFO 2025-06-25T07:34:20 +0ms service=provider init INFO 2025-06-25T07:34:20 +2ms service=provider providerID=openai found INFO 2025-06-25T07:34:20 +0ms service=provider providerID=openai modelID=gpt-4.1 getModel INFO 2025-06-25T07:34:20 +0ms service=provider status=started providerID=openai getSDK INFO 2025-06-25T07:34:20 +1ms service=provider status=completed duration=1 providerID=openai getSDK ERROR 2025-06-25T07:34:20 +2ms service=default providerID=openai name=ProviderInitError message=ProviderInitError cause=ResolveMessage: Cannot find module '/Users/sasha.cambas/.cache/opencode/node_modules/@ai-sdk/openai' from '/$bunfs/root/opencode' fatal Error: Unexpected error, check log file at for more details ``` I've looked into this cache folder and seen that in fact there are no node_modules installed so i just ran npm install and tried the opencode again and it seems to be working now 😄
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#167