chore: refactoring status updates

This commit is contained in:
adamdottv 2025-05-08 12:03:59 -05:00
parent e35ea2d448
commit f41b7bbd0a
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
24 changed files with 367 additions and 265 deletions

View file

@ -3,11 +3,12 @@ package main
import (
"github.com/opencode-ai/opencode/cmd"
"github.com/opencode-ai/opencode/internal/logging"
"github.com/opencode-ai/opencode/internal/status"
)
func main() {
defer logging.RecoverPanic("main", func() {
logging.ErrorPersist("Application terminated due to unhandled panic")
status.Error("Application terminated due to unhandled panic")
})
cmd.Execute()