From efaf90867984aaf2a2c78c5a79cca0d805c5f0ff Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Fri, 17 Jul 2026 16:05:22 -0700 Subject: [PATCH 1/2] Handle AwaitingApproval status in watch_deployment_status --- .../src/reflex_cli/utils/hosting.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/reflex-hosting-cli/src/reflex_cli/utils/hosting.py b/packages/reflex-hosting-cli/src/reflex_cli/utils/hosting.py index d87db2a84f2..fd05f8bc2de 100644 --- a/packages/reflex-hosting-cli/src/reflex_cli/utils/hosting.py +++ b/packages/reflex-hosting-cli/src/reflex_cli/utils/hosting.py @@ -1993,6 +1993,11 @@ def watch_deployment_status(deployment_id: str, client: AuthenticatedClient) -> if "completed successfully" in status: console.success(status) break + if "AwaitingApproval" in status: + console.success( + "build submitted for approval; it will deploy automatically once an approver approves it." + ) + break if "build error" in status: console.warn(status) console.warn( @@ -2008,10 +2013,9 @@ def watch_deployment_status(deployment_id: str, client: AuthenticatedClient) -> if "bad response" in status: console.warn(status) return True - if status == current_status: - continue - current_status = status - console.info(status) + if status != current_status: + current_status = status + console.info(status) time.sleep(0.5) return True From 128310f506e90a067252655e02fa512ef1b84418 Mon Sep 17 00:00:00 2001 From: Khaleel Al-Adhami Date: Fri, 17 Jul 2026 16:07:24 -0700 Subject: [PATCH 2/2] Add changelog fragment --- packages/reflex-hosting-cli/news/6797.feature.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 packages/reflex-hosting-cli/news/6797.feature.md diff --git a/packages/reflex-hosting-cli/news/6797.feature.md b/packages/reflex-hosting-cli/news/6797.feature.md new file mode 100644 index 00000000000..67bb06f2f2f --- /dev/null +++ b/packages/reflex-hosting-cli/news/6797.feature.md @@ -0,0 +1 @@ +When a deployment requires approval, `reflex deploy` now reports that the build was submitted for approval and will deploy automatically once approved, instead of polling indefinitely.