mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 18:24:21 +01:00
fix: init ordering
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
|||||||
"log/slog"
|
"log/slog"
|
||||||
|
|
||||||
"github.com/sst/opencode/internal/config"
|
"github.com/sst/opencode/internal/config"
|
||||||
|
"github.com/sst/opencode/internal/fileutil"
|
||||||
"github.com/sst/opencode/internal/history"
|
"github.com/sst/opencode/internal/history"
|
||||||
"github.com/sst/opencode/internal/llm/agent"
|
"github.com/sst/opencode/internal/llm/agent"
|
||||||
"github.com/sst/opencode/internal/logging"
|
"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)
|
slog.Error("Failed to initialize status service", "error", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
fileutil.Init()
|
||||||
|
|
||||||
app := &App{
|
app := &App{
|
||||||
CurrentSession: &session.Session{},
|
CurrentSession: &session.Session{},
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ var (
|
|||||||
fzfPath string
|
fzfPath string
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func Init() {
|
||||||
var err error
|
var err error
|
||||||
rgPath, err = exec.LookPath("rg")
|
rgPath, err = exec.LookPath("rg")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user