Repository navigation
Closed
Description
Hello,
I believe opencode was working till 0.2.28 for me and then stopped responding after I upgraded it. The session simply stalls. And now it doesn't seem to respond even if I downgrade it to 0.2.28. I also tried installing it with curl instead of homebrew but the result was the same.
Here are the logs with command opencode run "hi" --print-logs for reference.
INFO 2025-07-16T15:10:24 +41ms service=app cwd=/Users/testuser/Downloads creating
INFO 2025-07-16T15:10:24 +0ms service=default version=0.3.13 args=run,hi,--print-logs opencode
INFO 2025-07-16T15:10:24 +0ms service=app cwd=/Users/testuser/Downloads creating
INFO 2025-07-16T15:10:24 +2ms service=app git
INFO 2025-07-16T15:10:24 +0ms service=app git
INFO 2025-07-16T15:10:24 +2ms service=app name=config registering service
INFO 2025-07-16T15:10:24 +1ms service=bus type=storage.write subscribing
INFO 2025-07-16T15:10:24 +0ms service=app name=bus registering service
INFO 2025-07-16T15:10:24 +0ms service=format init
INFO 2025-07-16T15:10:24 +0ms service=bus type=file.edited subscribing
INFO 2025-07-16T15:10:24 +0ms service=config.hooks init
INFO 2025-07-16T15:10:24 +0ms service=bus type=file.edited subscribing
INFO 2025-07-16T15:10:24 +0ms service=bus type=session.idle subscribing
INFO 2025-07-16T15:10:24 +0ms service=app name=lsp registering service
INFO 2025-07-16T15:10:24 +1ms service=session id=ses_7ec369206ffekkmbnwpGu67eR0 version=0.3.13 title=New Session - 2025-07-16T15:10:24.761Z time=[object Object] created
INFO 2025-07-16T15:10:24 +0ms service=app name=session registering service
INFO 2025-07-16T15:10:24 +0ms service=app name=storage registering service
INFO 2025-07-16T15:10:24 +3ms service=config $schema=https://opencode.ai/config.json theme=opencode autoshare=false autoupdate=true model=openai_compatible_server/gpt-4o provider=[object Object] username=testuser loaded
INFO 2025-07-16T15:10:24 +0ms service=bus type=storage.write publishing
INFO 2025-07-16T15:10:24 +0ms service=app name=config registering service
INFO 2025-07-16T15:10:24 +0ms service=config $schema=https://opencode.ai/config.json theme=opencode autoshare=false autoupdate=true model=openai_compatible_server/gpt-4o provider=[object Object] username=testuser loaded
INFO 2025-07-16T15:10:24 +0ms service=bus type=session.updated publishing
█▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
█░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀
@ openai_compatible_server/gpt-4o
INFO 2025-07-16T15:10:24 +1ms service=bus type=message.part.updated subscribing
INFO 2025-07-16T15:10:24 +0ms service=bus type=session.error subscribing
INFO 2025-07-16T15:10:24 +0ms service=app name=mode registering service
INFO 2025-07-16T15:10:24 +1ms service=session session=ses_7ec369206ffekkmbnwpGu67eR0 chatting
INFO 2025-07-16T15:10:24 +0ms service=app name=provider registering service
INFO 2025-07-16T15:10:24 +1ms service=models.dev refreshing
INFO 2025-07-16T15:10:24 +0ms service=provider init
INFO 2025-07-16T15:10:24 +7ms service=provider providerID=openai_compatible_server found
INFO 2025-07-16T15:10:24 +0ms service=provider providerID=openai_compatible_server modelID=gpt-4o getModel
INFO 2025-07-16T15:10:24 +0ms service=provider status=started providerID=openai_compatible_server getSDK
INFO 2025-07-16T15:10:24 +1ms service=bun cmd=/opt/homebrew/Cellar/opencode/0.3.13/bin/opencode,add,--force,--exact,--cwd,/Users/testuser/.cache/opencode,--registry=https://registry.npmjs.org,@ai-sdk/openai-compatible@beta cwd=/Users/testuser/.cache/opencode running
System details:
OS: macOS v15
opencode version: 0.3.13
package manager: homebrew
Token is not the issue because it worked before and I tested it with other tools after opencode stopped responding
Reacted by Erik Slovák, Evhen, Martin and Jimmy Kromann
Metadata
Metadata
Assignees
Labels
No labels
Activity
thdxr commentedon Jul 16, 2025
does clearing ~/.cache/opencode help?
ukalwa commentedon Jul 16, 2025
That didn't seem to work
simonjm commentedon Jul 17, 2025
I was experiencing this yesterday because I have a
.npmrcsetup for an internal registry that is behind a firewall and when that is not accessible it causes opencode to hang. The fix for me was creating a.bunfig.tomlin my home directory that points the registry to a public one likehttps://registry.npmjs.org.art3xias23 commentedon Jul 17, 2025
Using the below until this is resolved as the upgrade command did not work in downgrading the version.
curl -fsSL https://opencode.ai/install | VERSION=0.2.28 bashItsnotaka commentedon Jul 17, 2025
Verified that downgrading works on the latest macos beta
ukalwa commentedon Jul 23, 2025
In my case, it turned out to be a company proxy thing. Opencode worked after fixing the proxy!
sregister commentedon Jul 23, 2025
@ukalwa can you be more specific on any proxy settings that are needed? I have
HTTP_PROXYandHTTPS_PROXYenv vars set but is there something else that needs to be done? I also suspected it was a proxy issue but I couldn't figure out why it initially worked and then suddenly stopped.ukalwa commentedon Jul 28, 2025
I disconnected from vpn and unset proxy vars, then it worked
duciito commentedon Jul 31, 2025
had the same thing - always stuck at "working...", in my case I deleted the
~/.bun/install/cache/folder and it started working againrekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
fyeeme commentedon Feb 2, 2026
rm ~/.bun/install/cache/ and ~/.cache/opencode works for me
chore(deps): bump actions/setup-node from 4.4.0 to 6.3.0 (anomalyco#1058
fix(app): remove artifacts rail from session sidebar (anomalyco#1058)
experiment(review-prompt): tighten review agent prompt vs Copilot fee…