From 065b726e65cabac641cb29e68cf5cee192bc5d4d Mon Sep 17 00:00:00 2001
From: zhixian
Date: Tue, 17 Feb 2026 23:45:02 +0900
Subject: [PATCH] fix: show restart hint after any config-modifying steps, not
just config_patch
create_agent, bind_channel, setup_identity all modify openclaw.json
and need a gateway restart. Previously the hint only showed when
config_patch steps ran.
Co-Authored-By: Claude Opus 4.6
---
src/pages/Cook.tsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/pages/Cook.tsx b/src/pages/Cook.tsx
index 7ccf5ba..48ed979 100644
--- a/src/pages/Cook.tsx
+++ b/src/pages/Cook.tsx
@@ -27,7 +27,7 @@ export function Cook({
const [resolvedStepList, setResolvedStepList] = useState([]);
const [stepStatuses, setStepStatuses] = useState([]);
const [stepErrors, setStepErrors] = useState>({});
- const [hasConfigPatch, setHasConfigPatch] = useState(false);
+ const [needsRestart, setNeedsRestart] = useState(false);
useEffect(() => {
api.listRecipes(recipeSource).then((recipes) => {
@@ -51,7 +51,7 @@ export function Cook({
// Auto-skip steps whose template args resolved to empty
setStepStatuses(steps.map((s) => (s.skippable ? "skipped" : "pending")));
setStepErrors({});
- setHasConfigPatch(steps.some((s) => !s.skippable && s.action === "config_patch"));
+ setNeedsRestart(steps.some((s) => !s.skippable));
setPhase("confirm");
};
@@ -203,7 +203,7 @@ export function Cook({
{doneCount} step{doneCount !== 1 ? "s" : ""} completed
{skippedCount > 0 && `, ${skippedCount} skipped`}
- {hasConfigPatch && (
+ {needsRestart && (
Use "Apply Changes" in the sidebar to restart the gateway and activate config changes.