From 62b63242ba4e914cb41d19dd7d102f18e379fbaa Mon Sep 17 00:00:00 2001 From: Anurag Goel Date: Thu, 24 Sep 2026 07:06:01 -0700 Subject: [PATCH] Stop setting the deploying stage of a run prompt-to-app set the stage deploying after publish-app. Then awaitDeployment() looked up the Blueprint and set waiting_for_services. The UI does not list deploying. While a run was at that stage, the UI marked no stage as complete or active. Thus the stage list was the same as for a run that did not start. No code, test, or script reads deploying, and the docs do not list it. This change removes it from the workflow, and does not change the UI. The stage stays publishing during the Blueprint lookup. The lookup is normally complete in a few seconds. RunStage no longer has deploying, so tsc gives an error for a new write of it. Now RunStage and stageOrder in public/app.js list the same stages in the same order. A comment on RunStage says to keep them the same. Co-Authored-By: Claude Opus 5.5 --- app/store.ts | 7 +++++-- app/workflow.ts | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/store.ts b/app/store.ts index 9a4cac6..c165400 100644 --- a/app/store.ts +++ b/app/store.ts @@ -20,7 +20,11 @@ export type FinishedStatus = Exclude< "running" | "deleting" | "delete_failed" >; -/** Coarse progress for GET /v1/apps/:runId. Cosmetic; never gates a run. */ +/** + * Coarse progress for GET /v1/apps/:runId. Cosmetic; never gates a run. + * stageOrder in public/app.js must list these stages in this order. If the + * stage of a run is not in that list, the UI shows no progress for the run. + */ export type RunStage = | "designing" | "provisioning" @@ -28,7 +32,6 @@ export type RunStage = | "building" | "verifying" | "publishing" - | "deploying" | "waiting_for_services" | "waiting_for_deploys" | "smoke_testing" diff --git a/app/workflow.ts b/app/workflow.ts index 5d1b436..9df8ef7 100644 --- a/app/workflow.ts +++ b/app/workflow.ts @@ -196,7 +196,6 @@ async function run( } // ── Deploy ────────────────────────────────────────────────────── - await setRunStage(runId, "deploying"); return await awaitDeployment({ tasks, sandbox,