Black screen on just installed opencode #7329

Open
opened 2026-02-16 18:06:51 -05:00 by yindo · 22 comments
Owner

Originally created by @akopichin on GitHub (Jan 23, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Image 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`

Whast can I do? What url is timouted?

Plugins

No response

OpenCode version

1.1.34

Steps to reproduce

install opencode
run "opencode" command

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @akopichin on GitHub (Jan 23, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description <img width="1081" height="456" alt="Image" src="https://github.com/user-attachments/assets/1b926ba6-35bd-487a-9c21-8fc5af5093d5" /> 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` Whast can I do? What url is timouted? ### Plugins _No response_ ### OpenCode version 1.1.34 ### Steps to reproduce install opencode run "opencode" command ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:06:51 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 23, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10201: opencode no longer works (black screen after update)
  • #10165: Blank Interface Issue After Updating OpenCode Desktop to Version 1.1.33 on macOS (Intel)
  • #8135: MacBook Pro 2020 Intel 12 Monterey Open Black Screen
  • #9895: "TimeoutError: The operation timed out." Can't open Opencode (Android Studio terminal, same timeout error)
  • #9903: Can't open TUI running on a remote Omnissa Horizon machine (black screen/frozen)
  • #9963: Can't run OpenCode under WSL2 Ubuntu, returns empty screen
  • #9577: White screen on launch – OpenCode Desktop (Windows 10, timeout error mentioned)
  • #8383: opencode stuck to run (similar startup/logging issues)
  • #8502: opencode run fails with 'Session not found' (server error)

All of these issues appear to involve:

  1. Black/blank/white screen on startup
  2. Timeout errors ("The operation timed out")
  3. UI not rendering properly
  4. Installation issues with specific platforms

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #10201: opencode no longer works (black screen after update) - #10165: Blank Interface Issue After Updating OpenCode Desktop to Version 1.1.33 on macOS (Intel) - #8135: MacBook Pro 2020 Intel 12 Monterey Open Black Screen - #9895: "TimeoutError: The operation timed out." Can't open Opencode (Android Studio terminal, same timeout error) - #9903: Can't open TUI running on a remote Omnissa Horizon machine (black screen/frozen) - #9963: Can't run OpenCode under WSL2 Ubuntu, returns empty screen - #9577: White screen on launch – OpenCode Desktop (Windows 10, timeout error mentioned) - #8383: opencode stuck to run (similar startup/logging issues) - #8502: opencode run fails with 'Session not found' (server error) All of these issues appear to involve: 1. Black/blank/white screen on startup 2. Timeout errors ("The operation timed out") 3. UI not rendering properly 4. Installation issues with specific platforms Feel free to ignore if none of these address your specific case.
Author
Owner

@egorzainullin commented on GitHub (Jan 23, 2026):

The same problem after updating on mac

@egorzainullin commented on GitHub (Jan 23, 2026): The same problem after updating on mac
Author
Owner

@akopichin commented on GitHub (Jan 23, 2026):

curl -fsSL https://opencode.ai/install | bash -s -- --version 1.1.20
1.1.20 version is working BY THE WAY.

@akopichin commented on GitHub (Jan 23, 2026): curl -fsSL https://opencode.ai/install | bash -s -- --version 1.1.20 1.1.20 version is working BY THE WAY.
Author
Owner

@egorzainullin commented on GitHub (Jan 23, 2026):

curl -fsSL https://opencode.ai/install | bash -s -- --version 1.1.20 1.1.20 version is working BY THE WAY.

I guess so, before updating it worked

@egorzainullin commented on GitHub (Jan 23, 2026): > curl -fsSL https://opencode.ai/install | bash -s -- --version 1.1.20 1.1.20 version is working BY THE WAY. I guess so, before updating it worked
Author
Owner

@akopichin commented on GitHub (Jan 23, 2026):

Started once but second time no luck...

@akopichin commented on GitHub (Jan 23, 2026): Started once but second time no luck...
Author
Owner

@akopichin commented on GitHub (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 commented on GitHub (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.
Author
Owner

@akopichin commented on GitHub (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.

@akopichin commented on GitHub (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.
Author
Owner

@GoyacJ commented on GitHub (Jan 23, 2026):

Image

I have same question. v1.1.34.

@GoyacJ commented on GitHub (Jan 23, 2026): <img width="1050" height="553" alt="Image" src="https://github.com/user-attachments/assets/eb03690d-1c1c-439b-9990-8633e3ab99da" /> I have same question. v1.1.34.
Author
Owner

@adamdotdevin commented on GitHub (Jan 24, 2026):

Can someone try right-click, inspect, and see if there are any console logs?

@adamdotdevin commented on GitHub (Jan 24, 2026): Can someone try right-click, inspect, and see if there are any console logs?
Author
Owner

@akopichin commented on GitHub (Jan 24, 2026):

On monday.

@akopichin commented on GitHub (Jan 24, 2026): On monday.
Author
Owner

@akopichin commented on GitHub (Jan 24, 2026):

possibly this can fix

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,

@akopichin commented on GitHub (Jan 24, 2026): possibly this can fix ``` 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, ```
Author
Owner

@MJay-Ku commented on GitHub (Jan 25, 2026):

Can someone try right-click, inspect, and see if there are any console logs?

@adamdotdevin does this help?

https://i.imgur.com/P07njvx.png

@MJay-Ku commented on GitHub (Jan 25, 2026): > Can someone try right-click, inspect, and see if there are any console logs? @adamdotdevin does this help? https://i.imgur.com/P07njvx.png
Author
Owner

@nostitos commented on GitHub (Jan 25, 2026):

Can someone try right-click, inspect, and see if there are any console logs?

@adamdotdevin does this help?

https://i.imgur.com/P07njvx.png

Same here, Just started using, It's extra confusing because I've no idea what I should expect.

Image Image
@nostitos commented on GitHub (Jan 25, 2026): > > Can someone try right-click, inspect, and see if there are any console logs? > > [@adamdotdevin](https://github.com/adamdotdevin) does this help? > > https://i.imgur.com/P07njvx.png Same here, Just started using, It's extra confusing because I've no idea what I should expect. <img width="598" height="288" alt="Image" src="https://github.com/user-attachments/assets/579b2cad-e7c4-4aa6-b1b6-c15bf0b5399a" /> <img width="598" height="176" alt="Image" src="https://github.com/user-attachments/assets/bdae6e11-4940-41ae-8d94-72d7c0f74edf" />
Author
Owner

@blueway commented on GitHub (Jan 25, 2026):

log: service=models.dev file={} refreshing, Why does this log always show up every time I open ?

@blueway commented on GitHub (Jan 25, 2026): log: `service=models.dev file={} refreshing`, Why does this log always show up every time I open ?
Author
Owner

@IvanWangBin commented on GitHub (Jan 31, 2026):

Hello, my situation is similar to yours. After disabling the oh-my-opencode plugin (removing omo from plugins in ~/.config/opencode/opencode.json), I was able to start the OpenCode CLI normally. I suspect that there was a problem with omo, so please try reconfiguring omo.

@IvanWangBin commented on GitHub (Jan 31, 2026): Hello, my situation is similar to yours. After disabling the oh-my-opencode plugin (removing omo from plugins in ~/.config/opencode/opencode.json), I was able to start the OpenCode CLI normally. I suspect that there was a problem with omo, so please try reconfiguring omo.
Author
Owner

@egorzainullin commented on GitHub (Jan 31, 2026):

Hello, my situation is similar to yours. After disabling the oh-my-opencode plugin (removing omo from plugins in ~/.config/opencode/opencode.json), I was able to start the OpenCode CLI normally. I suspect that there was a problem with omo, so please try reconfiguring omo.

Oh, this plugin is preinstalled? How to remove it?

@egorzainullin commented on GitHub (Jan 31, 2026): > Hello, my situation is similar to yours. After disabling the oh-my-opencode plugin (removing omo from plugins in ~/.config/opencode/opencode.json), I was able to start the OpenCode CLI normally. I suspect that there was a problem with omo, so please try reconfiguring omo. Oh, this plugin is preinstalled? How to remove it?
Author
Owner

@IvanWangBin commented on GitHub (Feb 1, 2026):

Hello, my situation is similar to yours. After disabling the oh-my-opencode plugin (removing omo from plugins in ~/.config/opencode/opencode.json), I was able to start the OpenCode CLI normally. I suspect that there was a problem with omo, so please try reconfiguring omo.你好,我的情况和你相似。在禁用 oh-my-opencode 插件(从 ~/.config/opencode/opencode.json 中的 plugins 里移除 omo)之后,我能够正常启动 OpenCode CLI。我怀疑是 omo 存在问题,所以请尝试重新配置 omo。

Oh, this plugin is preinstalled? How to remove it?哦,这个插件是预装的?怎么卸载它?

@egorzainullin
Hello, my situation might be different from yours, but you can check if this is the cause.

omo (full name: oh-my-opencode) is a well-known plugin for OpenCode, but it's not pre-installed with OpenCode. The omo issue I mentioned earlier has been resolved in version 3.1.10. If you want to check if omo is enabled, you can open ~/.config/opencode/opencode.json, find the "plugins" section, and if "oh-my-opencode" is listed, you can remove it from the plugins list. Alternatively, you can upgrade to omo version 3.1.10 or later. My English isn't great, but I hope this helps.

@IvanWangBin commented on GitHub (Feb 1, 2026): > > Hello, my situation is similar to yours. After disabling the oh-my-opencode plugin (removing omo from plugins in ~/.config/opencode/opencode.json), I was able to start the OpenCode CLI normally. I suspect that there was a problem with omo, so please try reconfiguring omo.你好,我的情况和你相似。在禁用 oh-my-opencode 插件(从 ~/.config/opencode/opencode.json 中的 plugins 里移除 omo)之后,我能够正常启动 OpenCode CLI。我怀疑是 omo 存在问题,所以请尝试重新配置 omo。 > > Oh, this plugin is preinstalled? How to remove it?哦,这个插件是预装的?怎么卸载它? @egorzainullin Hello, my situation might be different from yours, but you can check if this is the cause. omo (full name: oh-my-opencode) is a well-known plugin for OpenCode, but it's not pre-installed with OpenCode. The omo issue I mentioned earlier has been resolved in version 3.1.10. If you want to check if omo is enabled, you can open ~/.config/opencode/opencode.json, find the "plugins" section, and if "oh-my-opencode" is listed, you can remove it from the plugins list. Alternatively, you can upgrade to omo version 3.1.10 or later. My English isn't great, but I hope this helps.
Author
Owner

@nostitos commented on GitHub (Feb 1, 2026):

My blackout problem got solved with one of the last updates.

@nostitos commented on GitHub (Feb 1, 2026): My blackout problem got solved with one of the last updates.
Author
Owner

@55113110202 commented on GitHub (Feb 3, 2026):

Same issue, really its mess now. Cant use it , just blank dark screen. Can some one throw step by step to resolve issue. Windows 11

@55113110202 commented on GitHub (Feb 3, 2026): Same issue, really its mess now. Cant use it , just blank dark screen. Can some one throw step by step to resolve issue. Windows 11
Author
Owner

@MJay-Ku commented on GitHub (Feb 3, 2026):

I managed to get my desktop app blackout fixed (on linux) - by making sure that both desktop and terminal were completely uninstalled then reinstalling the v1.1.48

@MJay-Ku commented on GitHub (Feb 3, 2026): I managed to get my desktop app blackout fixed (on linux) - by making sure that both desktop and terminal were completely uninstalled then reinstalling the v1.1.48
Author
Owner

@IvanWangBin commented on GitHub (Feb 3, 2026):

Same issue, really its mess now. Cant use it , just blank dark screen. Can some one throw step by step to resolve issue. Windows 11同样的问题,现在真的很混乱。无法使用,只是黑屏。有人能逐步指导解决此问题吗?Windows 11

First, try disabling all OpenCode plugins to rule out plugin-related issues causing OpenCode to malfunction. If this doesn't resolve the problem, try deleting OpenCode's configuration files (remember to back them up beforehand) and then reinstalling OpenCode.

@IvanWangBin commented on GitHub (Feb 3, 2026): > Same issue, really its mess now. Cant use it , just blank dark screen. Can some one throw step by step to resolve issue. Windows 11同样的问题,现在真的很混乱。无法使用,只是黑屏。有人能逐步指导解决此问题吗?Windows 11 First, try disabling all OpenCode plugins to rule out plugin-related issues causing OpenCode to malfunction. If this doesn't resolve the problem, try deleting OpenCode's configuration files (remember to back them up beforehand) and then reinstalling OpenCode.
Author
Owner

@akopichin commented on GitHub (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

Image
@akopichin commented on GitHub (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 <img width="962" height="296" alt="Image" src="https://github.com/user-attachments/assets/ec155699-88de-4c35-a988-891bb57e8965" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7329