Skip to content

panic: status service not initialized. Call status.InitService() at application startup. when running opencode #15

@maxstevens-nl

Description

@maxstevens-nl

Happens right after calling the command. The culprit seems to lie here, where status.Warn is called before the status service is initialized. Installing fzf avoids the warning and thus fixes the issue.

full output:

panic: status service not initialized. Call status.InitService() at application startup.

goroutine 1 [running]:
github.com/sst/opencode/internal/status.GetService(...)
        /home/runner/work/opencode/opencode/internal/status/status.go:61
github.com/sst/opencode/internal/status.Warn(...)
        /home/runner/work/opencode/opencode/internal/status/status.go:104
github.com/sst/opencode/internal/fileutil.init.0()
        /home/runner/work/opencode/opencode/internal/fileutil/fileutil.go:31 +0x158

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