Skip to content

An error undefined is not an object (evaluating 'x3.data.id') on macOS 26. #10561

Closed as not planned

Description

@finscn

Question

When I run opencode on macOS, there is an error :
undefined is not an object (evaluating 'x3.data.id')

Image

If I use

sudo opencode

It could work.

I install opencode with

curl -fsSL https://opencode.ai/install | bash

Activity

  1. github-actions commented on Jan 25, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. xuanweiH commented on Feb 4, 2026

    @xuanweiH

    I found that it works when using sudo to open, but the projects created with sudo will cause issues with the permissions of subsequent project processes. Have you found a solution for this problem?

  3. HelloWorld017 commented on Mar 25, 2026

    @HelloWorld017

    I had a same issue. For a temporary workaround, when I moved ~/.local/share/opencode/opencode.db into ~/.local/share/opencode/opencode.db.bak, it worked well.
    I think something in database is invalid

    Update:
    It found out that the error was:

    ERROR 2026-03-25T15:44:56 +1ms service=server error=table session has no column named workspace_id failed
    

    I manually created the workspace_id column and now it works again.
    Maybe it is because I had an update while running opencode.

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

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