Repository navigation
Program is stuck on initialization #3082
Copy link
Copy link
Closed
Description
Overview
The program wont properly start or give any errors, stuck in a infinite loop.
#2476 seems to be the same problem, however i couldn't figure out what "v 62" is:
I uninstalled and installed v 62, then it automatically upgraded and it works now on the latest version. So it's no longer an issue for me
Originally posted by @marn-in-prod in #2476
Installation method i used ( also tried with paru and npm in other tests but with same behavior ):
$ curl -fsSL https://opencode.ai/install | bash
Downloading opencode version: 0.14.7 ...
######################################################################## 100.0%When running opencode by itself it hangs on the last line:
$ opencode --print-logs --log-level DEBUG
INFO 2025-10-10T18:36:34 +75ms service=default version=0.14.7 args=["--print-logs","--log-level","DEBUG"] opencode
INFO 2025-10-10T18:36:34 +1ms service=project directory=/home/milho fromDirectory
INFO 2025-10-10T18:36:34 +6ms service=config path=/home/milho/.config/opencode/config.json loading
INFO 2025-10-10T18:36:34 +0ms service=config path=/home/milho/.config/opencode/opencode.json loading
INFO 2025-10-10T18:36:34 +0ms service=config path=/home/milho/.config/opencode/opencode.jsonc loading
INFO 2025-10-10T18:36:34 +2ms service=plugin path=opencode-copilot-auth@0.0.3 loading plugin
INFO 2025-10-10T18:36:34 +0ms service=bun pkg=opencode-copilot-auth version=0.0.3 installing package using Bun's default registry resolution
INFO 2025-10-10T18:36:34 +0ms service=bun cmd=["/home/milho/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/milho/.cache/opencode","opencode-copilot-auth@0.0.3"] cwd=/home/milho/.cache/opencode running
^C⏎When trying to auth :
$ opencode --print-logs --log-level DEBUG auth login
INFO 2025-10-10T18:44:55 +82ms service=default version=0.14.7 args=["--print-logs","--log-level","DEBUG","auth","login"] opencode
INFO 2025-10-10T18:44:55 +0ms service=project directory=/home/milho fromDirectory
┌ Add credential
INFO 2025-10-10T18:44:55 +3ms service=models.dev file={} refreshing
INFO 2025-10-10T18:44:55 +168ms service=models.dev file={} refreshing
│
◇ Select provider
│ OpenCode Zen
INFO 2025-10-10T18:44:57 +1737ms service=config path=/home/milho/.config/opencode/config.json loading
INFO 2025-10-10T18:44:57 +0ms service=config path=/home/milho/.config/opencode/opencode.json loading
INFO 2025-10-10T18:44:57 +0ms service=config path=/home/milho/.config/opencode/opencode.jsonc loading
INFO 2025-10-10T18:44:57 +2ms service=plugin path=opencode-copilot-auth@0.0.3 loading plugin
INFO 2025-10-10T18:44:57 +0ms service=bun pkg=opencode-copilot-auth version=0.0.3 installing package using Bun's default registry resolution
INFO 2025-10-10T18:44:57 +1ms service=bun cmd=["/home/milho/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/milho/.cache/opencode","opencode-copilot-auth@0.0.3"] cwd=/home/milho/.cache/opencode running
^C⏎ Upgrading leads to no errors:
$ opencode --print-logs --log-level DEBUG upgrade
INFO 2025-10-10T18:36:39 +82ms service=default version=0.14.7 args=["--print-logs","--log-level","DEBUG","upgrade"] opencode
█▀▀█ █▀▀█ █▀▀ █▀▀▄ █▀▀ █▀▀█ █▀▀▄ █▀▀
█░░█ █░░█ █▀▀ █░░█ █░░ █░░█ █░░█ █▀▀
▀▀▀▀ █▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀
┌ Upgrade
│
● Using method: curl
│
▲ opencode upgrade skipped: 0.14.7 is already installed
│
└ Done
$ cd ~/.cache/opencode/ && BUN_BE_BUN=1 opencode pm ls
error: Lockfile not found
My device information:
- OS: CachyOS x86_64
- Kernel: Linux 6.17.1-2-cachyos
- Shell: fish 4.1.1 (also tried with bash)
- Terminal: WezTerm 20250909-070512-bf9a2aee (also tried with kitty)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
github-actions commentedon Oct 10, 2025
This issue might be a duplicate of existing issues. Please check:
All these issues show the same pattern of hanging during the opencode-copilot-auth plugin installation step. The logs in #2476 are nearly identical to yours.
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Oct 10, 2025
I think v62 meant v0.6.2
rekram1-node commentedon Oct 10, 2025
@MilhoNerfado what kinda internet do you have (as in could this be a connectivity / speed issue?) I bet it is just taking time getting the packages from npm probably or grabbing models from models.dev...
Can you run:
MilhoNerfado commentedon Oct 10, 2025
Thank you @rekram1-node. Indeed looks to be a download problem, I left it running for longer in the background and 1 package was installed:
It might be taking quite a while to download and since there was no notification or signs it was still alive it left me worried, as my job's internet speed is quite good for my region (Brazil) I didn't expect it to be a download. I will try to install opencode in my home PC after work, maybe it's a ISP/route problem.
rekram1-node commentedon Oct 10, 2025
Gotcha
yeah we should work on this, maybe worth addressing once we finish migration that is a wip
rekram1-node commentedon Oct 10, 2025
Lmk how it goes, unfortunately you may have to leave it running for a little bit if there are any network speed probs
MilhoNerfado commentedon Oct 10, 2025
As for the
opencode auth list:And
~/.cache/opencode:MilhoNerfado commentedon Oct 10, 2025
Just a heads up @rekram1-node.
After about 40 minutes it finished downloading here is the logging, much appreciate your help:
rekram1-node commentedon Oct 10, 2025
40 min wtffff that sucks im sorry
rekram1-node commentedon Oct 12, 2025
does it run fine now?
MilhoNerfado commentedon Oct 13, 2025
Sadly i couldn't try it in my home environment.
In my work PC the tool opens but i get no answer from the AI model. just like in the auth problem i previously had, I'll leave it to run for at least an hour to see if it's any connectivity problems. However i feel like it's a separate issue from the original, would you like me to close it?
MilhoNerfado commentedon Oct 13, 2025
After a while i got an error:
rekram1-node commentedon Oct 13, 2025
@MilhoNerfado this one is easy fix:
AI_APICallError: The requested model is not supported.
2 things:
We document #2 here: https://opencode.ai/docs/providers/#github-copilot
MilhoNerfado commentedon Oct 14, 2025
@rekram1-node I managed to have Sonnet 3.5 working but 4.5 has the same problem as GPT-5-codex.
Funny enough the Copilot Chat CLI uses Sonnet 4.5 without any problem.
I'll close this issue as it diverged from the original problem, thanks a lot for the support!
rekram1-node commentedon Oct 14, 2025
ofc!!