Skip to content

OpenCode CLI is trying to access Zed sqlite DB #25164

@philipmat

Description

@philipmat

Description

I understand that opencode can be integrated with Zed through ACP.

I don't understand why when I try to run the opencode cli/tui sandboxed with nono I get a message that opencode is trying to access the Zed db.sqlite.

Error: EPERM: operation not permitted, stat '/Users/philip/Library/Application Support/Zed/db/0-stable/db.sqlite'
    at statSync (unknown)
    at JS (/$bunfs/root/chunk-zhwpgnbs.js:742:4787)
    at <anonymous> (/$bunfs/root/src/index.js:902:587)
    at find (native:1:11)
    at O (/$bunfs/root/src/index.js:903:1358)
    at <anonymous> (/$bunfs/root/src/index.js:903:2918)
    at V4 (/$bunfs/root/src/index.js:881:60982)
    at fc (/$bunfs/root/src/index.js:881:64610)
    at w9 (/$bunfs/root/src/index.js:881:64374)
    at bQ (/$bunfs/root/src/index.js:881:66227)
    at DL0 (/$bunfs/root/src/index.js:881:67662)
    at p6 (/$bunfs/root/src/index.js:881:66405)
    at tz0 (/$bunfs/root/src/index.js:881:67076)
    at p6 (/$bunfs/root/src/index.js:881:66418)
    at K (/$bunfs/root/src/index.js:882:12464)
    at <anonymous> (/$bunfs/root/src/index.js:882:119924)
    at processTicksAndRejections (native:7:39)...

Plugins

none

OpenCode version

1.14.30

Steps to reproduce

  1. In zed add OpenCode as an "External Agent" through the config (Cmd-Shift-p -> agent:open settings -> add agent -> Install from registry).
  2. Run opencode cli sandboxed with nono: nono run --profile opencode --allow . -- opencode
  3. Get error

Screenshot and/or share link

Image

Operating System

macos v26.4.1 (25E253)

Terminal

iTerm2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions