From b821fb2448f07ae930e1bba7fa505e7d1217a110 Mon Sep 17 00:00:00 2001 From: vldf Date: Wed, 6 Aug 2025 12:19:47 +0300 Subject: [PATCH 1/2] Feat: disable edit prompt action for the init prompt --- .../components/mainInput/Lump/sections/PromptsSection.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx b/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx index 10fb767b3..beb4b87e7 100644 --- a/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx +++ b/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx @@ -60,6 +60,9 @@ function PromptRow({ } }; + const canEdit = + prompt.promptFile && !prompt.promptFile.startsWith("builtin:"); + return (
Date: Thu, 7 Aug 2025 11:26:47 +0300 Subject: [PATCH 2/2] Fix: add missing space --- gui/src/components/mainInput/Lump/sections/PromptsSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx b/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx index beb4b87e7..ce7721d8c 100644 --- a/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx +++ b/gui/src/components/mainInput/Lump/sections/PromptsSection.tsx @@ -81,7 +81,7 @@ function PromptRow({