Finalize reviewed destination and skill changes
Preserve Settings as an independent navigation destination while landing the reviewed notification and skill-management updates. Keep the server and CLI skill contracts versioned and validated so the merged tree can be verified by the delivery gate.
This commit is contained in:
@@ -207,6 +207,9 @@ func (r *runner) notifyTerminalStep(id int64, status string) {
|
||||
if err != nil || len(detail.Steps) == 0 {
|
||||
return
|
||||
}
|
||||
if status == "failed" && detail.FailureKind == "expected" {
|
||||
return
|
||||
}
|
||||
step := detail.Steps[len(detail.Steps)-1]
|
||||
stepStatus, _, _, terminal := terminalFinish(step.Target, step.Stage, step.Outcome, step.Diagnostic)
|
||||
if !terminal || stepStatus != status {
|
||||
@@ -375,6 +378,14 @@ func (r *runner) notifyRun(id int64, name, status string, sequence int, currentS
|
||||
if event == "" {
|
||||
return
|
||||
}
|
||||
if status == "failed" {
|
||||
if detail, err := r.store.GetRun(r.ctx, id); err == nil && detail.FailureKind == "expected" {
|
||||
settings, settingsErr := r.store.NotificationSettings(r.ctx)
|
||||
if settingsErr != nil || (r.notifyMode(id) != "on" && !settings.RunFinished) {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
// Failed or interrupted runs always notify; successful runs notify only when
|
||||
// marked "on" or when the operator opted into every run end (run_finished).
|
||||
if event == "succeeded" || (event != protocol.NotifyWaiting && event != "failed" && event != "interrupted") {
|
||||
|
||||
Reference in New Issue
Block a user