fix: init ordering

This commit is contained in:
adamdottv 2025-05-15 12:52:42 -05:00
parent a65e593ab4
commit aa8b3ce1ee
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,7 @@ import (
"log/slog"
"github.com/sst/opencode/internal/config"
"github.com/sst/opencode/internal/fileutil"
"github.com/sst/opencode/internal/history"
"github.com/sst/opencode/internal/llm/agent"
"github.com/sst/opencode/internal/logging"
@ -72,6 +73,7 @@ func New(ctx context.Context, conn *sql.DB) (*App, error) {
slog.Error("Failed to initialize status service", "error", err)
return nil, err
}
fileutil.Init()
app := &App{
CurrentSession: &session.Session{},

View file

@ -19,7 +19,7 @@ var (
fzfPath string
)
func init() {
func Init() {
var err error
rgPath, err = exec.LookPath("rg")
if err != nil {