From 01e90ca7e142abcf65c280697749a6e258f93686 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sun, 27 Sep 2026 00:00:31 +0200 Subject: [PATCH] fix(workspace): wait for palette probes without Promise.allSettled The web tsconfig lib predates Promise.allSettled; use Promise.all over rejection-safe probes instead. Co-Authored-By: Claude Opus 5.5 --- .../services/workspace-shell-command-palette.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/workspace/shell/feature/src/lib/workspace-shell/services/workspace-shell-command-palette.service.ts b/libs/workspace/shell/feature/src/lib/workspace-shell/services/workspace-shell-command-palette.service.ts index 205bf8e87..6e0a3f865 100644 --- a/libs/workspace/shell/feature/src/lib/workspace-shell/services/workspace-shell-command-palette.service.ts +++ b/libs/workspace/shell/feature/src/lib/workspace-shell/services/workspace-shell-command-palette.service.ts @@ -58,7 +58,12 @@ export class WorkspaceShellCommandPaletteService { ].filter((load): load is Promise => load !== undefined); if (embeddedMpvSupportLoads.length > 0) { this.commandPaletteOpening = true; - void Promise.allSettled(embeddedMpvSupportLoads).finally(() => { + // A failed probe only hides its commands; it must not block opening. + void Promise.all( + embeddedMpvSupportLoads.map((load) => + load.catch(() => undefined) + ) + ).finally(() => { this.commandPaletteOpening = false; this.openResolvedCommandPalette(ctx, initialQuery); });