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