Skip debug projections when capture is disabled

This commit is contained in:
2026-11-26 01:49:29 +00:00
parent d0cc20c539
commit f49238c787
8 changed files with 144 additions and 99 deletions

View File

@@ -26,6 +26,10 @@ func (r *Runner) runChunkPlan(ctx context.Context, input RunInput, doc *source.S
origin := contracts.DiagnosticOrigin{Stage: contracts.DiagnosticOriginStageChunk, ModuleKey: chunker.Key()}
execution := operationExecution(input, origin, nil)
defer func() {
// Project final chunks here only when an operation capture was requested.
if execution.Capture == nil {
return
}
errorText := ""
if err != nil {
errorText = err.Error()