You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[GEN-09] MessageDb::insert swallows SQLite errors with .ok(); — silent message loss #269
Both INSERT branches of MessageDb::insert at crates/client/src/storage.rs:252-261 end with .ok();. The caller has no idea whether a message actually persisted. If the database is locked, disk is full, or a schema migration is pending, the UI still looks like it stored the message and history is silently missing on reload.
Same pattern repeats in storage.rs:413 (save_raw) and in the ALTER TABLE migration at line 244.
Fix
At minimum:
ifletErr(e) = self.conn.execute(...){
tracing::warn!(%e,"failed to persist message");}
Better: bubble the error up from insert so callers can surface it.
This issue was filed against commit 2f26d91, but MessageDb, the INSERT branches, the save_raw SQLite path at line 413, and the ALTER TABLE migration at line 244 were all deleted as dead code in 23219af (refactor(client): delete dead message_db field + MessageDb storage, 2026-04-26).
Verified on master batch branch claude/friendly-maxwell-bVlpW @ 56bd433: crates/client/src/storage.rs is now 350 lines, has no MessageDb, no SQLite INSERT, and no ALTER TABLE. rg 'MessageDb|StoredMessage|open_message_db|ALTER TABLE' crates/client/ returns zero hits.
Persistence in the client now lives in crates/client/src/persistence_actor.rs, and DAG persistence is handled by SqliteDagStore referenced in storage.rs. If silent-error patterns reappear in those paths, a fresh issue scoped to the new code is the right move.
Audit-finding GEN-09 no longer applicable on the current tree.
Activity
intendednull commentedon Apr 28, 2026
Closing as moot.
This issue was filed against commit
2f26d91, butMessageDb, theINSERTbranches, thesave_rawSQLite path at line 413, and theALTER TABLEmigration at line 244 were all deleted as dead code in23219af(refactor(client): delete dead message_db field + MessageDb storage, 2026-04-26).Verified on master batch branch
claude/friendly-maxwell-bVlpW@56bd433:crates/client/src/storage.rsis now 350 lines, has noMessageDb, no SQLiteINSERT, and noALTER TABLE.rg 'MessageDb|StoredMessage|open_message_db|ALTER TABLE' crates/client/returns zero hits.Persistence in the client now lives in
crates/client/src/persistence_actor.rs, and DAG persistence is handled bySqliteDagStorereferenced in storage.rs. If silent-error patterns reappear in those paths, a fresh issue scoped to the new code is the right move.Audit-finding
GEN-09no longer applicable on the current tree.Generated by Claude Code