anomalyco / anomalyco/opencode

Desktop: legacy layout freezes when switching projects

Open
#39,141 1 comment 0 reactions 1 assignee View on GitHub

@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
  1. Disable New layout designs so the legacy layout is active.
  2. Open a project with an existing session.
  3. Switch to another project from the left project rail.
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.