mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
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"
|
||||
|
||||
"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{},
|
||||
|
|
|
@ -19,7 +19,7 @@ var (
|
|||
fzfPath string
|
||||
)
|
||||
|
||||
func init() {
|
||||
func Init() {
|
||||
var err error
|
||||
rgPath, err = exec.LookPath("rg")
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue