Skip to content

Desktop crashes with stale Show read during cross-project session navigation #39840

Description

@OpeOginni

Description

OpenCode Desktop 1.18.10 crashes with Attempting to access a stale value from <Show> during cross-project session navigation. This occurs when opening an existing session from a project for the first time after the app started in another project. It also occurs when switching projects while a new-session tab is open.

An instrumented stack points to the prompt input's agent/model/variant controls in packages/session-ui/src/v2/components/prompt-input/index.tsx. A nested control reads the accessor from an outer non-keyed <Show> after project navigation removes that control.

Related to #39766 and #39704, but this has a distinct source from the titlebar session avatar addressed previously.

Plugins

Not provided

OpenCode version

1.18.10

Steps to reproduce

Existing session path:

  1. Launch OpenCode Desktop with project A active.
  2. Select project B, which has not been opened since launch.
  3. Open an already existing session from project B.
  4. The renderer intermittently crashes with Attempting to access a stale value from <Show>.

New-session path:

  1. Open a new-session tab in project A.
  2. Switch that new-session tab to project B.
  3. The renderer intermittently crashes with the same error.

Screenshot and/or share link

Screen.Recording.2026-07-31.at.10.57.32.mov

Instrumented stack:

Error: Attempting to access a stale value from <Show> that could possibly be undefined.
    at narrowedError (.../chunk-YMY2YRT3.js:1490:31)
    at .../chunk-YMY2YRT3.js:1522:40
    at get when (.../packages/session-ui/src/v2/components/prompt-input/index.tsx:301:18)
    at Show.createMemo.name [as fn] (.../chunk-YMY2YRT3.js:1509:49)

Operating System

macOS

Terminal

OpenCode Desktop

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions