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

Closed
opened 2026-02-16 17:24:50 -05:00 by yindo · 1 comment
Owner

Originally created by @maxstevens-nl on GitHub (May 15, 2025).

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
Originally created by @maxstevens-nl on GitHub (May 15, 2025). Happens right after calling the command. The culprit seems to lie [here](https://github.com/sst/opencode/blob/5d9058eb74581091d84b2cd935927da636b3dd37/internal/fileutil/fileutil.go#L31), 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 ```
yindo closed this issue 2026-02-16 17:24:50 -05:00
Author
Owner

@adamdotdevin commented on GitHub (May 15, 2025):

fixed this with aa8b3ce1ee, can you pull and verify?

@adamdotdevin commented on GitHub (May 15, 2025): fixed this with aa8b3ce1eedff364e4b2b325f63b538a784ea01f, can you pull and verify?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10