-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Description
A RangeError occurs in the browser when accessing the OpenCode server UI. The error persists even after attempting to reset the service environment and using a clean workspace.
Environment
OpenCode Version: 1.1.33
Deployment: opencode serve running on Linux (Systemd user service)
Access URL: http://127.0.0.1:4096
Error Details
Error Message: RangeError: Maximum call stack size exceeded
Stack Trace:
Plaintext
at R0 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:6834)
at pa (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:6591)
at Jc (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8001)
at Y5 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8969)
at http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8823
at yr (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8175)
at X5 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8816)
at yr (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8186)
at X5 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8816)
at yr (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8186)
Steps to Reproduce
Start the server using opencode serve.
Open the UI in a browser (tried Incognito mode to bypass cache).
The application fails to load, showing the error modal immediately.
Additional Context
The error was initially suspected to be related to recursive symlinks or complex file structures in the workspace. However, the issue remains even when pointed to a completely empty directory using WorkingDirectory in the Systemd unit. This suggests a possible infinite loop in the frontend asset (index-Bj9zfj-u.js) during the initial state hydration or component rendering.
Plugins
None
OpenCode version
OpenCode Version: 1.1.33
Steps to reproduce
Start the server using opencode serve.
Open the UI in a browser (tried Incognito mode to bypass cache).
The application fails to load, showing the error modal immediately.
Screenshot and/or share link
Operating System
ubuntu 22.04
Terminal
bash