Skip to content

Commit a02bc75

Browse files
authored
fix(web): keep background toast Open button inline (#34572)
1 parent fcc25c8 commit a02bc75

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

‎apps/web/src/components/chat/useComposerSend.ts‎

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,22 +1328,20 @@ export function useComposerSend(input: ComposerSendInput) {
13281328
}
13291329
if (backgroundThreadRef) {
13301330
if (backgroundDraftOpened) {
1331-
toastManager.add(
1332-
stackedThreadToast({
1333-
type: "success",
1334-
title: "Started in background",
1335-
timeout: 5_000,
1336-
actionProps: {
1337-
children: "Open",
1338-
onClick: () => {
1339-
void navigate({
1340-
to: "/$environmentId/$threadId",
1341-
params: buildThreadRouteParams(backgroundThreadRef),
1342-
});
1343-
},
1331+
toastManager.add({
1332+
type: "success",
1333+
title: "Started in background",
1334+
timeout: 5_000,
1335+
actionProps: {
1336+
children: "Open",
1337+
onClick: () => {
1338+
void navigate({
1339+
to: "/$environmentId/$threadId",
1340+
params: buildThreadRouteParams(backgroundThreadRef),
1341+
});
13441342
},
1345-
}),
1346-
);
1343+
},
1344+
});
13471345
}
13481346
} else if (
13491347
submissionIntent === "background" &&

0 commit comments

Comments
 (0)