Skip to content

Commit 0e3c0b5

Browse files
committed
Check against last successfully submitted status
1 parent 820a0de commit 0e3c0b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/exp_mcp.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,9 @@ func (s *mcpServer) startReporter(ctx context.Context, inv *serpent.Invocation)
581581
cliui.Warnf(inv.Stderr, "Failed to report task status: %s", err)
582582
}
583583

584-
lastPayload = payload
584+
if err == nil {
585+
lastPayload = payload
586+
}
585587
}
586588
}()
587589
}

0 commit comments

Comments
 (0)