Skip to content

Black screen on just installed opencode #10221

Closed as not planned
Closed as not planned

Description

@akopichin

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

Activity

  1. github-actions commented on Jan 23, 2026

    @github-actions
    Contributor

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

    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.

  2. egorzainullin commented on Jan 23, 2026

    @egorzainullin

    The same problem after updating on mac

  3. akopichin commented on Jan 23, 2026

    @akopichin
    Author

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

  4. egorzainullin commented on Jan 23, 2026

    @egorzainullin

    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

  5. akopichin commented on Jan 23, 2026

    @akopichin
    Author

    Started once but second time no luck...

  6. akopichin commented on Jan 23, 2026

    @akopichin
    Author

    After install this it's opens ok, but second time you start it - it autoupgraded to 1.1.34 somehow and stop work.

  7. akopichin commented on Jan 23, 2026

    @akopichin
    Author

    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.

  8. GoyacJ commented on Jan 24, 2026

    @GoyacJ
    Image

    I have same question. v1.1.34.

  9. adamdotdevin commented on Jan 24, 2026

    @adamdotdevin
    Member

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

  10. akopichin commented on Jan 24, 2026

    @akopichin
    Author

    On monday.

  11. akopichin commented on Jan 24, 2026

    @akopichin
    Author

    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,
    
    
  12. MJay-Ku commented on Jan 25, 2026

    @MJay-Ku

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

    @adamdotdevin does this help?

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

  13. nostitos commented on Jan 25, 2026

    @nostitos

    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
  14. 8 remaining items

  15. akopichin commented on Feb 4, 2026

    @akopichin
    Author

    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
  16. adamquant commented on Feb 19, 2026

    @adamquant

    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.

  17. fingertap commented on Feb 25, 2026

    @fingertap

    I cannot enter the CLI on fresh start. This is unbelievable that a product with so many stars fails at start.

  18. azizbekx commented on Feb 26, 2026

    @azizbekx

    this is problem opencode-anthropic-auth@0.0.13 for sure, i saw that this package not being supported anymore

  19. github-actions commented on Apr 28, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  20. fingertap commented on May 5, 2026

    @fingertap

    Can't believe no one gives this a look. This repo is going to die in future.

  21. BESHOI commented on May 21, 2026

    @BESHOI

    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.

    //before
    "leader": "ctrl+s,ctrl+x",
    // after
    "leader": "ctrl+s",
  22. alMubarmij commented on Jun 7, 2026

    @alMubarmij

    Same with the latest release: 1.16.2 on Windows.
    Should I downgrade?

  23. FerLuisxd commented on Jun 19, 2026

    @FerLuisxd

    This happens on windows too

  24. naranyala commented on Jun 22, 2026

    @naranyala

    This happened to me in projects that were previously opened by OpenCode, but in new projects dirpath, everything worked fine.

  25. m4ttyk commented on Jul 11, 2026

    @m4ttyk

    Hard reset helped in my case (macOS):

    rm -rf ~/.local/share/opencode
    
  26. jaywhen commented on Jul 31, 2026

    @jaywhen

    Hard reset helped in my case (macOS):

    rm -rf ~/.local/share/opencode
    

    Works for me!(macOS) THANKS!!! But ... how?

  27. adam-zieba commented on Oct 22, 2026

    @adam-zieba

    30. > Hard reset helped in my case (macOS):
    > > rm -rf ~/.local/share/opencode >

     Works for me!(macOS) THANKS!!! But ... how?
    

    The same solution works on Windows.

    Folder location:
    C:\Users<username>.local\share

    Pure cinema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions