fix: allow cold managed service discovery only at stage admission
This commit is contained in:
@@ -274,7 +274,7 @@ func (c *OpenCodeClient) Generate(ctx context.Context, config ModelConfig, promp
|
||||
c.Operations.Provider, c.Operations.Model = config.Provider, config.Model
|
||||
}
|
||||
if c.command == nil {
|
||||
connection, err := opencode.Open(ctx, opencode.Executable(), c.Directory, c.Backend)
|
||||
connection, err := opencode.OpenStage(ctx, opencode.Executable(), c.Directory, c.Backend)
|
||||
if err != nil {
|
||||
// Connecting to the service failed before any session existed.
|
||||
return "", harnessUnreachable(err)
|
||||
|
||||
Reference in New Issue
Block a user