feat: let the workspace error handler skip jobs started from the UI (#12624)

* feat: let the workspace error handler skip jobs started from the UI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: address review of the ui-run error handler mute

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-11-24 11:44:59 +01:00
committed by GitHub
co-authored by Claude Opus 5.5
parent e810cbb93a
commit ade2a55e86
20 changed files with 284 additions and 77 deletions
+4
View File
@@ -27,6 +27,7 @@ export interface ErrorHandlerConfig {
extra_args?: any;
muted_on_cancel?: boolean;
muted_on_user_path?: boolean;
muted_on_ui_runs?: boolean;
}
export interface SuccessHandlerConfig {
@@ -254,6 +255,9 @@ export async function pushWorkspaceSettings(
for (const key of SETTINGS_MANAGED_ONLY_WHEN_PRESENT) {
delete (localSettings as any)[key];
}
// Such a server reads an error handler body carrying this key as the legacy format, which
// clears the handler.
delete localSettings.error_handler?.muted_on_ui_runs;
const webhookUnreadable = unreadableSecret(localSettings.webhook);
if (webhookUnreadable) {
log.warn(