Skip to content

Commit f6baee2

Browse files
fix(web): the failed-message copy toast stays until dismissed
AI-assisted; verified with the tests and tools listed above.
1 parent 0f0ae90 commit f6baee2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,8 @@ export function useComposerSend(input: ComposerSendInput) {
14081408
? "Message may not have been sent"
14091409
: "Message not sent",
14101410
description: "Your new draft was kept. Copy the failed message to send it again.",
1411+
// The toast holds the only copy of the failed text, so it stays until dismissed.
1412+
timeout: 0,
14111413
data: { hideCopyButton: true },
14121414
actionProps: {
14131415
children: "Copy message",

0 commit comments

Comments
 (0)