Skip to content

Commit

Permalink
Minor nits to cancellation error message (#921)
Browse files Browse the repository at this point in the history
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

<img width="447" alt="Screenshot 2024-01-14 at 03 00 22"
src="https://github.com/lastmile-ai/aiconfig/assets/151060367/6dc5b73b-507d-4808-ad9f-d934a0597420">


After

<img width="442" alt="Screenshot 2024-01-14 at 03 00 05"
src="https://github.com/lastmile-ai/aiconfig/assets/151060367/7f32d2d3-e863-4e84-b42f-c9587b93e3c2">

---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/921).
* #928
* #926
* #925
* #924
* #922
* __->__ #921
* #920
* #919
* #918
* #917
  • Loading branch information
rossdanlm committed Jan 15, 2024
2 parents b19bd31 + aebdbb6 commit cc94a74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,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",
});
Expand Down

0 comments on commit cc94a74

Please sign in to comment.