From bc59544b074af38b55ca17faad3685a7efe4b55f Mon Sep 17 00:00:00 2001 From: "Molecule AI Dev Engineer A (Kimi)" Date: Sun, 7 Jun 2026 23:42:59 +0000 Subject: [PATCH 1/2] fix(canvas/e2e): tolerate transient 'failed' status during boot (#2032) Hermes cold-boot can exceed the bootstrap-watcher deadline, setting status=failed prematurely; heartbeat later recovers to online. Instead of hard-throwing on the first 'failed' sighting, log a warning and retry. Genuine terminal failures still surface via the waitFor timeout. Fixes #2032 --- canvas/e2e/staging-setup.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/canvas/e2e/staging-setup.ts b/canvas/e2e/staging-setup.ts index feb5988b2..e736651ed 100644 --- a/canvas/e2e/staging-setup.ts +++ b/canvas/e2e/staging-setup.ts @@ -341,11 +341,15 @@ export default async function globalSetup(_config: FullConfig): Promise { ); return true; } - // Real boot regression — hard-throw immediately with full detail. + // #2032: tolerate transient 'failed' during boot — some runtimes + // briefly report failed before recovering to online (e.g. agent + // restart during init). Retry instead of hard-throwing; genuine + // terminal failures will still surface via waitFor timeout. const detail = sampleErr ? sampleErr : `(no last_sample_error) full body: ${JSON.stringify(r.body)}`; - throw new Error(`Workspace failed: ${detail}`); + console.warn(`[staging-setup] transient failed (retrying): ${detail}`); + return null; } return null; }, -- 2.52.0 From 579e044e542e3b64b26a59175ff705b4dfc9ac71 Mon Sep 17 00:00:00 2001 From: "Molecule AI Dev Engineer A (Kimi)" Date: Mon, 8 Jun 2026 00:55:30 +0000 Subject: [PATCH 2/2] chore: retrigger CI for fresh review (#2417) -- 2.52.0