You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
once I start ~ opencode I see just black screen and nothing happened.
~ > opencode run hello --print-logs
says:
`INFO 2026-01-23T10:07:47 +3ms service=models.dev file={} refreshing
INFO 2026-01-23T10:07:47 +1ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)
Checked 3 installs across 4 packages (no changes) [2.00ms]
stderr= done
INFO 2026-01-23T10:07:47 +1ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)
Checked 3 installs across 4 packages (no changes) [2.00ms]
stderr= done
ERROR 2026-01-23T10:07:57 +10005ms service=default e=The operation timed out. rejection`
disable autoupdate and ok now. export OPENCODE_DISABLE_AUTOUPDATE=true
But glm4.7 z.ai provider - not working. Says unsufficient money. But it sibling terminal tab works fine with claude-cli ))
p.s. 1.31 version (from home laptop) works with this token.
commit 6b2201a76866905322dcfaf4133f3d6ad0e9ffc7
Author: Alexandr Kopichin <alexandrkopichin@Alexandrs-MacBook-Air.local>
Date: Fri Jan 23 21:35:41 2026 +0300
Fix #10221: Remove blocking refresh() from ModelsDev.get() to prevent black screen on startup
- Removed synchronous refresh() call from ModelsDev.get() that was blocking TUI initialization
- Increased fetch timeout from 10s to 30s in ModelsDev.refresh() for better reliability on slow connections
- Models now load immediately from cache or bundled data without blocking startup
- Background refresh continues to run every 60 minutes via setInterval
This fixes the issue where opencode showed a black screen for 10+ seconds on fresh installations
because the TUI bootstrap was waiting for the models.dev fetch to complete.
diff --git a/packages/opencode/src/provider/models.ts b/packages/opencode/src/provider/models.ts
index 1f7b74081..47261cb82 100644
--- a/packages/opencode/src/provider/models.ts
+++ b/packages/opencode/src/provider/models.ts
@@ -77,7 +77,6 @@ export namespace ModelsDev {
export type Provider = z.infer<typeof Provider>
export async function get() {
- refresh()
const file = Bun.file(filepath)
const result = await file.json().catch(() => {})
if (result) return result as Record<string, Provider>
@@ -101,7 +100,7 @@ export namespace ModelsDev {
headers: {
"User-Agent": Installation.USER_AGENT,
},
- signal: AbortSignal.timeout(10 * 1000),
+ signal: AbortSignal.timeout(30 * 1000),
}).catch((e) => {
log.error("Failed to fetch models.dev", {
error: e,
A solution I found is uninstalling and removing BUBBLETEA and TERMUI as these tui tools may have been interfering with he open code TUI. I'm pretty sure they were the culprit for me. Obviously these artefacts will appear if you start doing Go dev work, specifically if you are looking to build custom TUIs.
I recently got the same issue i tried everything nothing works until i updated the tui.json, i have two leader keys it was working before but for a reason it's not now so i removed the second key and it's working now, hope it helps.
Reacted by Flori@n, Jasim A Basheer, MichaelHindley, aa1ex, Xiang Jaywhen, Erkki Heikkonen, suicidaleggroll, atacan, priya-xavier, Szymon Bluma and 2 more
Activity
github-actions commentedon Jan 23, 2026
This issue might be a duplicate of existing issues. Please check:
All of these issues appear to involve:
Feel free to ignore if none of these address your specific case.
egorzainullin commentedon Jan 23, 2026
The same problem after updating on mac
akopichin commentedon Jan 23, 2026
curl -fsSL https://opencode.ai/install | bash -s -- --version 1.1.20
1.1.20 version is working BY THE WAY.
egorzainullin commentedon Jan 23, 2026
I guess so, before updating it worked
akopichin commentedon Jan 23, 2026
Started once but second time no luck...
akopichin commentedon Jan 23, 2026
After install this it's opens ok, but second time you start it - it autoupgraded to 1.1.34 somehow and stop work.
akopichin commentedon Jan 23, 2026
disable autoupdate and ok now. export OPENCODE_DISABLE_AUTOUPDATE=true
But glm4.7 z.ai provider - not working. Says unsufficient money. But it sibling terminal tab works fine with claude-cli ))
p.s. 1.31 version (from home laptop) works with this token.
GoyacJ commentedon Jan 24, 2026
I have same question. v1.1.34.
adamdotdevin commentedon Jan 24, 2026
Can someone try right-click, inspect, and see if there are any console logs?
akopichin commentedon Jan 24, 2026
On monday.
akopichin commentedon Jan 24, 2026
possibly this can fix
MJay-Ku commentedon Jan 25, 2026
@adamdotdevin does this help?
https://i.imgur.com/P07njvx.png
nostitos commentedon Jan 25, 2026
Same here, Just started using, It's extra confusing because I've no idea what I should expect.
8 remaining items
akopichin commentedon Feb 4, 2026
My opencode config is following:
{
"autoupdate": true,
"$schema": "https://opencode.ai/config.json"
}
there are no oh-my-zsh there. On 1.1.48 version it's now opens and works, but has glitches. See the screen
adamquant commentedon Feb 19, 2026
A solution I found is uninstalling and removing BUBBLETEA and TERMUI as these tui tools may have been interfering with he open code TUI. I'm pretty sure they were the culprit for me. Obviously these artefacts will appear if you start doing Go dev work, specifically if you are looking to build custom TUIs.
fix: add tzdata package to fix bubbletea TUI black screen
fingertap commentedon Feb 25, 2026
I cannot enter the CLI on fresh start. This is unbelievable that a product with so many stars fails at start.
azizbekx commentedon Feb 26, 2026
this is problem opencode-anthropic-auth@0.0.13 for sure, i saw that this package not being supported anymore
github-actions commentedon Apr 28, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
fingertap commentedon May 5, 2026
Can't believe no one gives this a look. This repo is going to die in future.
BESHOI commentedon May 21, 2026
I recently got the same issue i tried everything nothing works until i updated the tui.json, i have two leader keys it was working before but for a reason it's not now so i removed the second key and it's working now, hope it helps.
alMubarmij commentedon Jun 7, 2026
Same with the latest release: 1.16.2 on Windows.
Should I downgrade?
FerLuisxd commentedon Jun 19, 2026
This happens on windows too
naranyala commentedon Jun 22, 2026
This happened to me in projects that were previously opened by OpenCode, but in new projects dirpath, everything worked fine.
m4ttyk commentedon Jul 11, 2026
Hard reset helped in my case (macOS):
jaywhen commentedon Jul 31, 2026
Works for me!(macOS) THANKS!!! But ... how?
adam-zieba commentedon Oct 22, 2026
The same solution works on Windows.
Folder location:
C:\Users<username>.local\share
Pure cinema.