fix: init ordering
This commit is contained in:
parent
a65e593ab4
commit
aa8b3ce1ee
2 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue