Keep run --wait's 'run ended STATUS' error prefix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 00:30:31 +00:00
parent ba50bef3ba
commit 2e535951cf
+3 -2
View File
@@ -1472,10 +1472,11 @@ func (a App) finishRun(ctx context.Context, r protocol.Message, o *options, call
return err return err
} }
if o.wait && r.RunDetail.Status != "succeeded" { if o.wait && r.RunDetail.Status != "succeeded" {
message := fmt.Sprintf("run %d ended %s", r.RunDetail.ID, r.RunDetail.Status) message := fmt.Sprintf("run ended %s (run %d", r.RunDetail.Status, r.RunDetail.ID)
if note := failureNote(r.RunDetail); note != "" { if note := failureNote(r.RunDetail); note != "" {
message += " (" + note + ")" message += ": " + note
} }
message += ")"
if hint := waitingHint(r.RunDetail); hint != "" { if hint := waitingHint(r.RunDetail); hint != "" {
message += "; " + hint message += "; " + hint
} }