Skip to content

TypeError in Web UI - Cannot read properties of undefined (reading 'length') #16473

@HuaiminHuang

Description

@HuaiminHuang

Description

Stack Trace:

TypeError: Cannot read properties of undefined (reading 'length')
    at Object.fn (http://127.0.0.1:4096/assets/session-Cg8YeoLd.js:14:50663)
    at Mk (http://127.0.0.1:4096/assets/index-Dl3PGFdp.js:2:6835)
    at Pl (http://127.0.0.1:4096/assets/index-Dl3PGFdp.js:2:6592)
    at Object._6 (http://127.0.0.1:4096/assets/index-Dl3PGFdp.js:2:5606)
    at get style (http://127.0.0.1:4096/assets/session-Cg8YeoLd.js:14:51075)
    at jL (http://127.0.0.1:4096/assets/index-Dl3PGFdp.js:2:24146)
    at Object.fn (http://127.0.0.1:4096/assets/index-Dl3PGFdp.js:2:23793)
    at Mk (http://127.0.0.1:4096/assets/index-Dl3PGFdp.js:2:6835)
    at Pl (http://127.0.0.1:4096/assets/index-Dl3PGFdp.js:2:6592)
    at Oe (http://127.0.0.1:4096/assets/index-Dl3PGFdp.js:2:1831)

Environment:

  • opencode: 1.2.20
  • Node: v24.12.0
  • npm: 11.6.2
  • OS: WSL Ubuntu 22.04.5 LTS (jammy)
  • Browser: Chrome auto-redirect

!  OPENCODE_SERVER_PASSWORD is not set; server is unsecured.

                                   ▄
  █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
  █  █ █  █ █▀▀▀ █  █ █    █  █ █  █ █▀▀▀
  ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀

  Web interface:      http://127.0.0.1:4096/

Plugins

superpower

OpenCode version

1.2.20

Steps to reproduce

Steps to Reproduce:
Run opencode web command in terminal, error appears immediately after Chrome browser opens

Screenshot and/or share link

Image

Operating System

OS: WSL Ubuntu 22.04.5 LTS (jammy)

Terminal

WSL Ubuntu terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions