opencode icon indicating copy to clipboard operation
opencode copied to clipboard

"TimeoutError: The operation timed out." Can't open Opencode

Open MaRinekiee opened this issue 10 months ago • 13 comments

Description

When attempting to open Opencode from the Android Studio terminal, the visual interface doesn't appear. After a while, an error message appears. Can't find the correct config even after updating the config and reinstalling Opencode.

Plugins

No response

OpenCode version

1.29

Steps to reproduce

  1. Open project in Android Studio
  2. Open terminal
  3. Enter "opencode"
  4. Wait about 5 minutes

Screenshot and/or share link

Image

https://github.com/user-attachments/assets/5bd8e65e-6f99-4ddb-94ad-f096bc894436

Operating System

macOS 26.2

Terminal

Terminal

MaRinekiee avatar Jan 21 '26 22:01 MaRinekiee

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

  • #9577: White screen on launch – OpenCode Desktop with TimeoutError (very similar timeout and UI not appearing)
  • #8959: OpenCode freezes with black screen in Termux proot-distro Ubuntu (freeze/timeout on launch)
  • #5485: Opencode become stuck all of a sudden. Does not launch anymore (launch failure)
  • #9304: Windows Can't open opencode - Cannot find package errors (install/launch issues)
  • #5223: Can't open opencode after install with network-related errors (launch failures after installation)

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

github-actions[bot] avatar Jan 21 '26 22:01 github-actions[bot]

I have exact same problem on Arch Linux, started a week or so ago, version 1.1.31

spinagon avatar Jan 22 '26 06:01 spinagon

I have the same problem with Windows 11

bitmen777 avatar Jan 22 '26 19:01 bitmen777

version 1.1.31

bitmen777 avatar Jan 22 '26 19:01 bitmen777

Seemingly fixed on 1.1.36 There is still some timeout error in console, but the app works

spinagon avatar Jan 26 '26 08:01 spinagon

some timeout error in console still appears on windows 11, it doesn't blocker but annoying

Image

Nenormalniy avatar Jan 27 '26 13:01 Nenormalniy

Still exists in 1.1.49. I suppose there are network issues caused by network limitations and so on... Hope it could be fixed by some "console popup setting" or whatever, because it seems to be annoying when you have to close it manually every time you enter the tui 🥲

n1k1t avatar Feb 03 '26 11:02 n1k1t

The same problem, I don't even know how to close it.

IooEWREYooI avatar Feb 04 '26 08:02 IooEWREYooI

The same problem, I don't even know how to close it.

Ctrl+P and type "console". There should be the only one option to do that 😉

n1k1t avatar Feb 04 '26 08:02 n1k1t

The same problem, I don't even know how to close it.

Ctrl+P and type "console". There should be the only one option to do that 😉

THX!!!

IooEWREYooI avatar Feb 04 '26 10:02 IooEWREYooI

How to check exactly which URL cannot be reached due to network limitations?

Nenormalniy avatar Feb 07 '26 12:02 Nenormalniy

Still exists in 1.2.27

 {
      "type": "tool",
      "callID": "call_880cd4c09f1e4b55bf73e2bb",
      "tool": "skill",
      "state": {
        "status": "error",
        "input": {
          "name": "calculator"
        },
        "error": "TimeoutError: The operation timed out.",
        "time": {
          "start": 1774339051524,
          "end": 1774339051526
        }
      },
      "id": "prt_d1ed94ce10017uOR2JB14G2B83",
      "sessionID": "ses_2e126bb2effeFazT6qdulNouIo",
      "messageID": "msg_d1ed9451d001IFYLA0XnfE1Pq2"
    },

geosmart avatar Mar 24 '26 07:03 geosmart

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

github-actions[bot] avatar Jul 06 '26 03:07 github-actions[bot]