Skip to content

renderer: LocationNotFoundError for temp browser path persists after restart #54431

Closed

Description

@rizmulyawan

Description

Summary

Renderer shows LocationNotFoundError for temporary browser path when opening a project; hitting "Restart" returns to the same error page.

Environment

  • opencode version: 2.0.26
  • OS: Darwin 25.6.0 (darwin arm64)
  • Terminal: ghostty (xterm-256color, truecolor)
  • Shell: /bin/zsh
  • Install/channel: latest
  • Active plugins: None found in config

Reproduction

  1. Open opencode
  2. Open a project/file
  3. Renderer shows error: LocationNotFoundError: Location not found: /private/var/folders/mw/zvjqlbzn0_z8b8cg5tsrdzth0000gp/T/opencode-browser-au5VcH/0
  4. Click "Restart" button
  5. Returns to same error page (persistent error state)

Expected Behavior

Project should open normally in the renderer, or at minimum restart should recover to a working state.

Actual Behavior

Renderer fails to locate a temporary browser path (/private/var/folders/.../T/opencode-browser-*/0) and enters a persistent error loop where restart doesn't recover.

Additional Context

  • Error occurs intermittently when opening projects
  • No recent changes to opencode, config, or workspace
  • Stack trace points to renderer assets: oc://renderer/assets/main-CXmTgxnc.js
  • Temporary path pattern suggests browser component cleanup/initialization issue
  • Restart button doesn't clear the error state

Plugins

No response

OpenCode version

2.0.26 (2.0.26)

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

macOS Tahoe Version 26.7.1 (25G241)

Terminal

Ghostty

Activity

  1. opencode-agent commented on Oct 11, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed report and the screenshot. This happens in the Desktop app's renderer on macOS, which our automated environment can't run, so a maintainer with that setup will need to reproduce it.

    What we found so far: the missing path (.../T/opencode-browser-XXXX/0) is the temporary folder OpenCode's built-in browser creates when it saves a capture such as a screenshot. It looks like that folder got recorded as a project or session location. Once macOS removed it, the app showed the error for the whole window instead of handling it inside the affected tab, and because the tab is restored on restart, the error comes back every time.

    If you remember whether this started after the agent took a browser screenshot, or after you clicked a capture file path in the chat, that would help. As a temporary workaround, recreating that exact folder may let the app load again so you can close the tab or project.

    These existing issues look related, most likely first:

  2. Tarquinen commented on Oct 20, 2026

    @Tarquinen
    Member

    This was fixed by #55553. It mentioned this issue as related rather than closing it, so GitHub didn't close it automatically. Closing as completed. If you still see this on the latest OpenCode, please open a new issue with details.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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