Harden model results with lossless isolated repair and scoped permissions

This commit is contained in:
2026-10-09 20:02:41 +01:00
parent 0f80ff4e95
commit 67ac79765f
23 changed files with 977 additions and 58 deletions
+3 -1
View File
@@ -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)
}