fix(opencode): x-opencode-directory, Content-Length, warmup /api/model; serve без явного Env
This commit is contained in:
@@ -73,7 +73,7 @@ func (r *Runner) Run(ctx context.Context, prompt, cwd, agent, sessionID string)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
c := &Client{BaseURL: srv.Addr(), Password: srv.Password, Debug: r.Debug}
|
||||
c := &Client{BaseURL: srv.Addr(), Password: srv.Password, Directory: srv.Dir, Debug: r.Debug}
|
||||
|
||||
// Сессия: заданная (resume) или новая. Модель НЕ выбираем — opencode сам
|
||||
// берёт её по умолчанию из своего глобального конфига.
|
||||
|
||||
Reference in New Issue
Block a user