Harden model results with lossless isolated repair and scoped permissions
This commit is contained in:
@@ -309,7 +309,9 @@ func (r *runner) run(ctx context.Context, id int64, d *protocol.PipelineDetail,
|
||||
} else if useAgent {
|
||||
result, err = (stage.ModelStage{Client: client}).Run(ctx, def, input)
|
||||
} else if stage.EffectiveType(def.Type) == stage.ModelType {
|
||||
result, err = (stage.ModelStage{Client: stage.OpenCodeClient{Directory: workspace}}).Run(ctx, def, input)
|
||||
plain := &stage.OpenCodeClient{Directory: workspace}
|
||||
result, err = (stage.ModelStage{Client: plain}).Run(ctx, def, input)
|
||||
client.Transcript = plain.FormatAudit
|
||||
} else {
|
||||
result, err = stage.DefaultRegistry().Run(ctx, def, input)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user