From 3ed66f3d43e9cdd7353e29ace19134aa66805097 Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Thu, 2 Jul 2026 08:40:07 -0400 Subject: [PATCH] debug: add error surfacing for notes-to-self creation --- web/src/components/ConversationList.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/src/components/ConversationList.tsx b/web/src/components/ConversationList.tsx index c137a79..8a658b4 100644 --- a/web/src/components/ConversationList.tsx +++ b/web/src/components/ConversationList.tsx @@ -25,7 +25,10 @@ export function ConversationList() { fetchConversations(); }, [fetchConversations]); + const [notesError, setNotesError] = useState(null); + const openNotes = async () => { + setNotesError(null); // Find existing self-DM or create one const existing = conversations.find((c) => isSelfDM(c, currentUser?.id || "")); if (existing) { @@ -34,7 +37,10 @@ export function ConversationList() { } try { await createConversation([]); - } catch { /* ignore */ } + } catch (err) { + console.error('Failed to create notes:', err); + setNotesError(err instanceof Error ? err.message : 'Failed to create notes'); + } }; return ( @@ -85,6 +91,9 @@ export function ConversationList() { ); })} + {notesError && ( +
ERR: {notesError}
+ )} {showNew && setShowNew(false)} />} );