From 703bd412ed1c1b94789c29831cf482a8fb4042ab Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Thu, 23 Apr 2026 00:34:45 +0200 Subject: [PATCH] fix(deploy): toast when restoring checkpoint with no snapshot handleRestore previously returned silently when deployedConfigSnapshot was null, leaving the user wondering why their click did nothing. Show a warning toast explaining that the checkpoint predates snapshotting. Co-Authored-By: Claude Opus 4.7 (1M context) --- ui/src/pages/AppsTab/AppDeploymentPage/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/src/pages/AppsTab/AppDeploymentPage/index.tsx b/ui/src/pages/AppsTab/AppDeploymentPage/index.tsx index 9325042e..127a4476 100644 --- a/ui/src/pages/AppsTab/AppDeploymentPage/index.tsx +++ b/ui/src/pages/AppsTab/AppDeploymentPage/index.tsx @@ -321,7 +321,14 @@ export default function AppDeploymentPage() { const deployment = deployments.find((d) => d.id === deploymentId); if (!deployment) return; const snap = deployment.deployedConfigSnapshot; - if (!snap) return; + if (!snap) { + toast({ + title: 'Cannot restore checkpoint', + description: 'This checkpoint predates snapshotting and cannot be restored.', + variant: 'warning', + }); + return; + } setForm((prev) => { const a = snap.agentConfig ?? {};