Draft: flush-on-close loses final edit #13
Labels
No labels
auth
bug
composer
correctness
database
durability
enhancement
feeds
interactions
notifications
performance
reliability
safety
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starsetbyte/peregrine#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
500ms debounce is fine while typing, but close button calls onClose directly. User can type, close within 500ms, destroy ViewModel, cancel pending save.
Proposed fix
suspend closeAndPersist()— cancel debounce, snapshot segments, synchronously save, navigate after persistence. Also save on lifecycle onStop.Source: Codex code review — durability #1