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
bug(feed-debug): the fail-closed unknown-file-size path resolves the append so the renderer marks unwritten entries durable #771
When stat of a session's feed-debug file fails for a reason other than ENOENT, the batch is dropped but the renderer advances its persisted cursor, so those entries are never resent and never written — while the comment claims the opposite.
Mechanism
src/main/storage/feedDebugLog.ts (~201-208): the "unknown on-disk size … fail CLOSED … return WITHOUT advancing the cursor so the renderer resends these entries" branch returns normally. The IPC handler (src/main/ipc/debug.ts, debug:append-feed-log) resolves, useFeedDebugPersist's .then sets persistedFeedDebugIdRef to the batch's max id, and the entries are marked durable.
Expected
That branch must reject (throw) so the renderer keeps the entries pending and retries after the pacing interval; the comment then becomes true. Add a test with a stat failure that is not ENOENT asserting the IPC rejects and a later batch re-includes the entries.
Activity
fix(feed-debug): flush a removed session's trailing entries instead o…