Skip to content

Commit f3198b2

Browse files
t3dotggclaude
andcommitted
fix(web): skip storage-rejection toast for memory-only image saves
Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent b6aa8ec commit f3198b2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎apps/web/src/components/chat/ChatComposer.tsx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2164,8 +2164,10 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
21642164
// The second phase can be rejected on its own: the text-only entry
21652165
// fit, but adding image payloads pushed past the quota. Disk would
21662166
// then still hold the phase-one entry with pendingImageCount set,
2167-
// which reads as an orphan after reload — so say so now.
2168-
if (!imagesDurable && images.length > 0) {
2167+
// which reads as an orphan after reload — so say so now. Gated on the
2168+
// entry write having been durable: on the in-memory fallback nothing
2169+
// is ever durable, and the session-only warning already covered it.
2170+
if (!imagesDurable && durable && images.length > 0) {
21692171
toastManager.add({
21702172
type: "warning",
21712173
title: "Stashed images were not saved",

0 commit comments

Comments
 (0)