You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TypeError in Web UI - Cannot read properties of undefined (reading 'length') #16473
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
The crash is in packages/ui/src/components/text-shimmer.tsx lines 40 and 47:
constshimmerSize=createMemo(()=>{constlen=Math.max(props.text.length,1)// crashes if props.text is undefined...})constshimmerDuration=createMemo(()=>{constlen=Math.max(props.text.length,1)// same...})
props.text is typed as string but can be undefined at runtime when the reactive value feeding it (e.g. i18n translation) hasn't resolved yet during initial evaluation.
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.