Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

bug: UI prompt edit changes go away when tab switching (#3827)

Marc Klingen63fa223e543d
diff --git a/web/src/features/prompts/components/prompt-new.tsx b/web/src/features/prompts/components/prompt-new.tsx
index 37aefa8f35..6776877aa6 100644
--- a/web/src/features/prompts/components/prompt-new.tsx
+++ b/web/src/features/prompts/components/prompt-new.tsx
@@ -14,7 +14,11 @@ export const NewPrompt = () => {
projectId: projectId as string, // Typecast as query is enabled only when projectId is present
id: initialPromptId ?? "",
},
- { enabled: Boolean(initialPromptId && projectId) },
+ {
+ enabled: Boolean(initialPromptId && projectId),
+ refetchOnWindowFocus: false,
+ refetchOnReconnect: false,
+ },
);
if (isInitialLoading) {