Can't get it to initialize #57

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

Originally created by @fractalswift on GitHub (Jun 14, 2025).

Originally assigned to: @thdxr on GitHub.

MacOS Sequoia 15.2

Terminal is Ghostty with ZSH and Oh My Zosh

Have deleted all my old versions including the non-sst version, and all my config files (as far as I can tell - everything on .config/opencode and ~/.opencode/

Logged in via Claude PRO - no issues there.

But when I open it up in my repo and start sending prompts, nothing happens.

https://github.com/user-attachments/assets/c0d879bd-2981-4ec6-a431-f0ad24b53694

Originally created by @fractalswift on GitHub (Jun 14, 2025). Originally assigned to: @thdxr on GitHub. MacOS Sequoia 15.2 Terminal is Ghostty with ZSH and Oh My Zosh Have deleted all my old versions including the non-sst version, and all my config files (as far as I can tell - everything on .config/opencode and ~/.opencode/ Logged in via Claude PRO - no issues there. But when I open it up in my repo and start sending prompts, nothing happens. https://github.com/user-attachments/assets/c0d879bd-2981-4ec6-a431-f0ad24b53694
yindo closed this issue 2026-02-16 17:24:59 -05:00
Author
Owner

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

can you test with opencode run hey --print-logs

@thdxr commented on GitHub (Jun 14, 2025): can you test with opencode run hey --print-logs
Author
Owner

@fractalswift commented on GitHub (Jun 14, 2025):

` 14:57:36 ➜ pblish git:(implement-flipbook) ✗ opencode run hey --print-logs
2025-06-14T13:57:38.687Z service=default version=0.1.40 args=run,hey,--print-logs opencode
2025-06-14T13:57:38.687Z service=app cwd=/Users/matthewxxx/Fractal/ebook-generator/pblish creating
2025-06-14T13:57:38.690Z service=app git=/Users/matthewxxx/Fractal/ebook-generator/pblish git
2025-06-14T13:57:38.690Z service=app name=share registering service
2025-06-14T13:57:38.690Z service=bus type=storage.write subscribing
2025-06-14T13:57:38.690Z service=app name=bus registering service
2025-06-14T13:57:38.690Z service=session id=ses_89144b0fdffe581ac8747a6f40 title=New Session - 2025-06-14T13:57:38.690Z time=[object Object] created
2025-06-14T13:57:38.690Z service=app name=session registering service
2025-06-14T13:57:38.690Z service=app name=storage registering service
2025-06-14T13:57:38.690Z service=storage path=/Users/matthewxxx/.local/share/opencode/project/-Users-matthewxxx-Fractal-ebook-generator-pblish/storage init
2025-06-14T13:57:38.691Z service=bus type=storage.write publishing
2025-06-14T13:57:38.691Z service=bus type=session.updated publishing
◍ OpenCode 0.1.40

hey

~ https://dev.opencode.ai/s/747a6f40

2025-06-14T13:57:38.691Z service=bus type=message.part.updated subscribing
2025-06-14T13:57:38.691Z service=app name=provider registering service
2025-06-14T13:57:38.691Z service=app name=config registering service
2025-06-14T13:57:38.692Z service=config loaded
2025-06-14T13:57:38.692Z service=models.dev refreshing
2025-06-14T13:57:38.692Z service=provider loading
2025-06-14T13:57:39.162Z service=provider providerID=openai loaded
2025-06-14T13:57:39.162Z service=provider providerID=anthropic loaded
2025-06-14T13:57:39.165Z service=session session=ses_89144b0fdffe581ac8747a6f40 chatting
2025-06-14T13:57:39.165Z service=provider providerID=openai modelID=codex-mini-latest loading
2025-06-14T13:57:39.166Z service=bun pkg=@ai-sdk/openai installing
2025-06-14T13:57:39.166Z service=bun cmd=/Users/matthewxxx/.bun/install/global/node_modules/opencode-darwin-arm64/bin/opencode,add,@ai-sdk/openai@alpha options=[object Object] running
2025-06-14T13:57:39.265Z providerID=openai ProviderInitError
2025-06-14T13:57:39.267Z service=default ProviderInitError: ProviderInitError
14:57:39 ➜ pblish git:(implement-flipbook) ✗`

@fractalswift commented on GitHub (Jun 14, 2025): ` 14:57:36 ➜ pblish git:(implement-flipbook) ✗ opencode run hey --print-logs 2025-06-14T13:57:38.687Z service=default version=0.1.40 args=run,hey,--print-logs opencode 2025-06-14T13:57:38.687Z service=app cwd=/Users/matthewxxx/Fractal/ebook-generator/pblish creating 2025-06-14T13:57:38.690Z service=app git=/Users/matthewxxx/Fractal/ebook-generator/pblish git 2025-06-14T13:57:38.690Z service=app name=share registering service 2025-06-14T13:57:38.690Z service=bus type=storage.write subscribing 2025-06-14T13:57:38.690Z service=app name=bus registering service 2025-06-14T13:57:38.690Z service=session id=ses_89144b0fdffe581ac8747a6f40 title=New Session - 2025-06-14T13:57:38.690Z time=[object Object] created 2025-06-14T13:57:38.690Z service=app name=session registering service 2025-06-14T13:57:38.690Z service=app name=storage registering service 2025-06-14T13:57:38.690Z service=storage path=/Users/matthewxxx/.local/share/opencode/project/-Users-matthewxxx-Fractal-ebook-generator-pblish/storage init 2025-06-14T13:57:38.691Z service=bus type=storage.write publishing 2025-06-14T13:57:38.691Z service=bus type=session.updated publishing ◍ OpenCode 0.1.40 > hey ~ https://dev.opencode.ai/s/747a6f40 2025-06-14T13:57:38.691Z service=bus type=message.part.updated subscribing 2025-06-14T13:57:38.691Z service=app name=provider registering service 2025-06-14T13:57:38.691Z service=app name=config registering service 2025-06-14T13:57:38.692Z service=config loaded 2025-06-14T13:57:38.692Z service=models.dev refreshing 2025-06-14T13:57:38.692Z service=provider loading 2025-06-14T13:57:39.162Z service=provider providerID=openai loaded 2025-06-14T13:57:39.162Z service=provider providerID=anthropic loaded 2025-06-14T13:57:39.165Z service=session session=ses_89144b0fdffe581ac8747a6f40 chatting 2025-06-14T13:57:39.165Z service=provider providerID=openai modelID=codex-mini-latest loading 2025-06-14T13:57:39.166Z service=bun pkg=@ai-sdk/openai installing 2025-06-14T13:57:39.166Z service=bun cmd=/Users/matthewxxx/.bun/install/global/node_modules/opencode-darwin-arm64/bin/opencode,add,@ai-sdk/openai@alpha options=[object Object] running 2025-06-14T13:57:39.265Z providerID=openai ProviderInitError 2025-06-14T13:57:39.267Z service=default ProviderInitError: ProviderInitError 14:57:39 ➜ pblish git:(implement-flipbook) ✗`
Author
Owner

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

the error i need is swallowed there - latest version should be better can you update and share print logs again

@thdxr commented on GitHub (Jun 14, 2025): the error i need is swallowed there - latest version should be better can you update and share print logs again
Author
Owner

@mastermakrela commented on GitHub (Jun 14, 2025):

I have the same problem in the latest version (0.1.41) but with anthropic (instead of openai) provider

❯ opencode run hey --print-logs
2025-06-14T17:52:50.054Z service=default version=0.1.41 args=run,hey,--print-logs opencode
2025-06-14T17:52:50.054Z service=app cwd=/Users/krzysztof/tmp/opencode creating
2025-06-14T17:52:50.056Z service=app git
2025-06-14T17:52:50.057Z service=app name=share registering service
2025-06-14T17:52:50.057Z service=bus type=storage.write subscribing
2025-06-14T17:52:50.057Z service=app name=bus registering service
2025-06-14T17:52:50.057Z service=session id=ses_8906d5e76ffe56b11da66caa6b title=New Session - 2025-06-14T17:52:50.057Z time=[object Object] created
2025-06-14T17:52:50.057Z service=app name=session registering service
2025-06-14T17:52:50.057Z service=app name=storage registering service
2025-06-14T17:52:50.057Z service=storage path=/Users/krzysztof/.local/share/opencode/project/global/storage init
2025-06-14T17:52:50.058Z service=bus type=storage.write publishing
2025-06-14T17:52:50.058Z service=bus type=session.updated publishing
◍  OpenCode 0.1.41

>  hey

~  https://dev.opencode.ai/s/a66caa6b

2025-06-14T17:52:50.058Z service=bus type=message.part.updated subscribing
2025-06-14T17:52:50.058Z service=app name=provider registering service
2025-06-14T17:52:50.058Z service=app name=config registering service
2025-06-14T17:52:50.058Z service=config loaded
2025-06-14T17:52:50.059Z service=models.dev refreshing
2025-06-14T17:52:50.059Z service=provider loading
2025-06-14T17:52:50.060Z service=provider providerID=anthropic loaded
2025-06-14T17:52:50.060Z service=session session=ses_8906d5e76ffe56b11da66caa6b chatting
2025-06-14T17:52:50.060Z service=provider providerID=anthropic modelID=claude-sonnet-4-20250514 loading
2025-06-14T17:52:50.060Z service=bun pkg=@ai-sdk/anthropic installing
2025-06-14T17:52:50.060Z service=bun cmd=/opt/homebrew/Cellar/opencode/0.1.41/bin/opencode,add,@ai-sdk/anthropic@alpha options=[object Object] running
2025-06-14T17:52:50.068Z providerID=anthropic ProviderInitError
2025-06-14T17:52:50.070Z service=default ProviderInitError: ProviderInitError
@mastermakrela commented on GitHub (Jun 14, 2025): I have the same problem in the latest version (`0.1.41`) but with anthropic (instead of openai) provider ``` ❯ opencode run hey --print-logs 2025-06-14T17:52:50.054Z service=default version=0.1.41 args=run,hey,--print-logs opencode 2025-06-14T17:52:50.054Z service=app cwd=/Users/krzysztof/tmp/opencode creating 2025-06-14T17:52:50.056Z service=app git 2025-06-14T17:52:50.057Z service=app name=share registering service 2025-06-14T17:52:50.057Z service=bus type=storage.write subscribing 2025-06-14T17:52:50.057Z service=app name=bus registering service 2025-06-14T17:52:50.057Z service=session id=ses_8906d5e76ffe56b11da66caa6b title=New Session - 2025-06-14T17:52:50.057Z time=[object Object] created 2025-06-14T17:52:50.057Z service=app name=session registering service 2025-06-14T17:52:50.057Z service=app name=storage registering service 2025-06-14T17:52:50.057Z service=storage path=/Users/krzysztof/.local/share/opencode/project/global/storage init 2025-06-14T17:52:50.058Z service=bus type=storage.write publishing 2025-06-14T17:52:50.058Z service=bus type=session.updated publishing ◍ OpenCode 0.1.41 > hey ~ https://dev.opencode.ai/s/a66caa6b 2025-06-14T17:52:50.058Z service=bus type=message.part.updated subscribing 2025-06-14T17:52:50.058Z service=app name=provider registering service 2025-06-14T17:52:50.058Z service=app name=config registering service 2025-06-14T17:52:50.058Z service=config loaded 2025-06-14T17:52:50.059Z service=models.dev refreshing 2025-06-14T17:52:50.059Z service=provider loading 2025-06-14T17:52:50.060Z service=provider providerID=anthropic loaded 2025-06-14T17:52:50.060Z service=session session=ses_8906d5e76ffe56b11da66caa6b chatting 2025-06-14T17:52:50.060Z service=provider providerID=anthropic modelID=claude-sonnet-4-20250514 loading 2025-06-14T17:52:50.060Z service=bun pkg=@ai-sdk/anthropic installing 2025-06-14T17:52:50.060Z service=bun cmd=/opt/homebrew/Cellar/opencode/0.1.41/bin/opencode,add,@ai-sdk/anthropic@alpha options=[object Object] running 2025-06-14T17:52:50.068Z providerID=anthropic ProviderInitError 2025-06-14T17:52:50.070Z service=default ProviderInitError: ProviderInitError ```
Author
Owner

@vsgoulart commented on GitHub (Jun 14, 2025):

I'm getting the same error on Arch with the AUR package

@vsgoulart commented on GitHub (Jun 14, 2025): I'm getting the same error on Arch with the AUR package
Author
Owner

@vsgoulart commented on GitHub (Jun 15, 2025):

After I updated to a newer version the error was visible from the API side. On my case I didn't have credits for the API (I thought it would use the card from the Claude web UI).

When I added credits everything worked fine. You have to increase the context limit though, otherwise it will give you another error for larger contexts

@vsgoulart commented on GitHub (Jun 15, 2025): After I updated to a newer version the error was visible from the API side. On my case I didn't have credits for the API (I thought it would use the card from the Claude web UI). When I added credits everything worked fine. You have to increase the context limit though, otherwise it will give you another error for larger contexts
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#57