anomalyco / anomalyco/opencode
Desktop: legacy layout freezes when switching projects
@Hona is already working on this.
Since Jul 27, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Switching projects from the left project rail can freeze OpenCode Desktop when the legacy layout is active. The window stops responding and must be restarted.
The renderer log records this at the freeze:
Uncaught (in promise) TypeError: Cannot read properties of null (reading '0')
A Chrome DevTools Protocol capture at the failure showed repeated SolidJS cleanNode frames. The owner chain pointed to the accepting memo in the legacy PromptInput:
const accepting = createMemo(() => {
const id = props.controls.session.id
if (!id) return permission.isAutoAcceptingDirectory(sdk().directory)
return permission.isAutoAccepting(id, sdk().directory)
})
This appears to be re-entrant Solid cleanup while the project/session subtree is being disposed. It resembles the Solid issue addressed by https://github.com/solidjs/solid/pull/2062.
Plugins
No response
OpenCode version
Desktop 1.18.7
Steps to reproduce
- Disable New layout designs so the legacy layout is active.
- Open a project with an existing session.
- Switch to another project from the left project rail.
- Repeat if necessary; the renderer freezes and logs the null-property exception.
Screenshot and/or share link
No response
Operating System
Windows OpenCode Desktop connected to WSL
Terminal
No response
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.