From aebdbb69201740197a963c40729dd08aa62a38cf Mon Sep 17 00:00:00 2001 From: "Rossdan Craig rossdan@lastmileai.dev" <> Date: Sun, 14 Jan 2024 03:14:47 -0500 Subject: [PATCH] Minor nits to cancellation error message Put the prompt name in quotes. Also specifying that we're resetting outputs only, not the entire prompt or AIConfig. Also refreshed the AIConfig to make sure that changes are propagated. I also noticed that if you don't refresh the text lingers there. This gets fixed automatically with the next PR in diff stack! ## Test Plan Before Screenshot 2024-01-14 at 03 00 22 After Screenshot 2024-01-14 at 03 00 05 --- .../aiconfig/editor/client/src/components/AIConfigEditor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/src/aiconfig/editor/client/src/components/AIConfigEditor.tsx b/python/src/aiconfig/editor/client/src/components/AIConfigEditor.tsx index c5c0a8a9a..62d58387f 100644 --- a/python/src/aiconfig/editor/client/src/components/AIConfigEditor.tsx +++ b/python/src/aiconfig/editor/client/src/components/AIConfigEditor.tsx @@ -670,8 +670,8 @@ export default function EditorContainer({ showNotification({ title: `Execution interrupted for prompt${ - promptName ? ` ${promptName}` : "" - }. Resetting to previous state.`, + promptName ? ` '${promptName}'` : "" + }. Resetting output to previous state.`, message: event.data.message, color: "yellow", });