opencode icon indicating copy to clipboard operation
opencode copied to clipboard

TUI not installed correctly

Open Soupra-D opened this issue 2 months ago • 2 comments

Description

Hi,

I'm using opencode behing a proxy, at first I had issue with opencode-copilot-auth, I managed to install the dependency with bun install opencode-copilot-auth and setting up my CA-certificate for my private npm repo.

I can use opencode web but the interface is not there yet compared to the TUI.

When I start opencode I have the following error :

$ cat _console_1762340258777.log
[11:56:48] [ERROR] Error: undefined is not an object (evaluating 'x3.data.providers')
TypeError: undefined is not an object (evaluating 'x3.data.providers')
    at <anonymous> (src/cli/cmd/tui/context/sync.tsx:143:81)
    at processTicksAndRejections (native:7:39)

[11:56:48] [ERROR] Error: undefined is not an object (evaluating 'x3.data.providers')
TypeError: undefined is not an object (evaluating 'x3.data.providers')
    at <anonymous> (src/cli/cmd/tui/context/sync.tsx:143:81)
    at processTicksAndRejections (native:7:39)

[11:57:20] [INFO] 'Console logs saved to: _console_1762340240317.log'

When on focused mode, I can do ctrl+p and the error message rotate, but when i lose focuse, the tty is locked.

I think it's an issue with the opentui dependency, can I install the dependency somehow ?

Or is it something else ?

OpenCode version

1.0.25

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Windows 11 + wsl 2 Ubuntu 22.04.2 LTS

Terminal

Alacritty in windows, start wsl

Soupra-D avatar Nov 05 '25 11:11 Soupra-D

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

  • #3462: Both report the exact same error 'undefined is not an object (evaluating 'x3.data.providers')' at the same location in sync.tsx

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

github-actions[bot] avatar Nov 05 '25 11:11 github-actions[bot]

@rekram1-node this one got labeled as web, kicking it back to you!

adamdotdevin avatar Nov 05 '25 11:11 adamdotdevin