fix: remove reviewer response success toast
This commit is contained in:
@@ -7,7 +7,7 @@ import { WidgetHost } from "./WidgetHost";
|
|||||||
|
|
||||||
beforeEach(() => useSessionStore.getState().resetSession());
|
beforeEach(() => useSessionStore.getState().resetSession());
|
||||||
|
|
||||||
test("a gate choice shows progress, prevents duplicate clicks, and confirms delivery", async () => {
|
test("a gate choice shows progress, prevents duplicate clicks, and stays silent on success", async () => {
|
||||||
let release!: () => void;
|
let release!: () => void;
|
||||||
const held = new Promise<void>((resolve) => { release = resolve; });
|
const held = new Promise<void>((resolve) => { release = resolve; });
|
||||||
let requests = 0;
|
let requests = 0;
|
||||||
@@ -36,10 +36,7 @@ test("a gate choice shows progress, prevents duplicate clicks, and confirms deli
|
|||||||
|
|
||||||
act(() => release());
|
act(() => release());
|
||||||
await waitFor(() => expect(useSessionStore.getState().pendingWidget).toBeNull());
|
await waitFor(() => expect(useSessionStore.getState().pendingWidget).toBeNull());
|
||||||
expect(useSessionStore.getState().toasts.at(-1)).toEqual({
|
expect(useSessionStore.getState().toasts).toEqual([]);
|
||||||
level: "success",
|
|
||||||
text: "Response sent. The model is continuing.",
|
|
||||||
});
|
|
||||||
|
|
||||||
act(() => useSessionStore.setState({
|
act(() => useSessionStore.setState({
|
||||||
pendingWidget: {
|
pendingWidget: {
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ export function WidgetHost({ sessionId }: { sessionId: string | null }) {
|
|||||||
}
|
}
|
||||||
responseInFlight.current = false;
|
responseInFlight.current = false;
|
||||||
setResponding(false);
|
setResponding(false);
|
||||||
pushToast({ level: "success", text: "Response sent. The model is continuing." });
|
|
||||||
setLastUserEntry({
|
setLastUserEntry({
|
||||||
kind: "choice",
|
kind: "choice",
|
||||||
text:
|
text:
|
||||||
|
|||||||
Reference in New Issue
Block a user