anomalyco / anomalyco/opencode
TUI crash: EditorView is destroyed
@simonklee is already working on this.
Since Sep 12, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
The OpenCode TUI crashed with an unexpected error after upgrading to 2.0.1 (from 0.0.0-beta-19425).
Error: EditorView is destroyed
Stack trace:
Error: EditorView is destroyed
at guard (/$bunfs/root/chunk-4vr1e9w8.js:182:110632)
at getVisualCursor (/$bunfs/root/chunk-4vr1e9w8.js:182:113150)
This looks like OpenTUI accessing an EditorView after it was already destroyed (cursor measurement during a layout/input update).
Reported automatically from the OpenCode crash screen.
Plugins
None specified.
OpenCode version
2.0.1 (npm i -g @opencode/cli@2.0.1)
Steps to reproduce
Reported automatically from the OpenCode crash screen. If you can, describe what you were doing when it crashed.
- Upgrade OpenCode from
0.0.0-beta-19425to2.0.1 - Start the TUI in Cursor's integrated terminal (
opencode) - TUI stops with the crash screen above
Screenshot and/or share link
OpenCode crash screen shows:
- Error:
EditorView is destroyed - Buttons: Restart / Quit
- Version footer: OpenCode 2.0.1
Operating System
Linux 6.8.0-124-generic (x64), Ubuntu 24.04.4 LTS
Terminal
vscode 3.19.13
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.