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:
2026-11-12 11:30:17 +00:00
parent 26bb583f10
commit a733a927f3
33 changed files with 1344 additions and 42 deletions
+11
View File
@@ -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") {