Repository navigation
Closed
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktop
Description
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
Operating System
OS: WSL Ubuntu 22.04.5 LTS (jammy)
Terminal
WSL Ubuntu terminal
Reacted by Larry Lu
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingwebRelates to opencode on web / desktopRelates to opencode on web / desktop
Activity
github-actions commentedon Mar 7, 2026
This issue might be a duplicate of existing issues. Please check:
Cannot read properties of undefined (reading 'id')in session bundle #16459: Very similar crash —TypeError: Cannot read properties of undefinedinsession-*.jsbundle on Web UI startup with version 1.2.20. The stack traces both originate from the same asset file and crash the UI on load.Eric-Guo commentedon Mar 7, 2026
Same issue, thanks reporting as I just fix my self by GPT 5.4, so save me open another issue.
cyberprophet commentedon Mar 7, 2026
Root Cause
The crash is in
packages/ui/src/components/text-shimmer.tsxlines 40 and 47:props.textis typed asstringbut can beundefinedat runtime when the reactive value feeding it (e.g. i18n translation) hasn't resolved yet during initial evaluation.Two PRs addressing this
props.text?.length ?? 0(optional chaining)createMemo(() => props.text ?? "")and extracts sharedlenmemoBoth are valid. PR #16475's approach is slightly more idiomatic for SolidJS (memoized fallback) and eliminates the duplicated
lencomputation.HRronaldo commentedon Mar 7, 2026
Same issue, Windows 11
lzss433 commentedon Mar 7, 2026
Same issue, Windows 11 with oh my opencode
jeremyakers commentedon Mar 7, 2026
Same issue. Ubuntu 22.04
I see a fix was merged. Any idea when it will be released?
PengMai1998 commentedon Mar 7, 2026
Same issue. Windows 11.