Repository navigation
fix(mobile): let the agents search draft debounce stand while typing - #6766
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryThe only change since the previous review ( Files Reviewed (1 file)
Previous Review Summary (commit c5ca7f6)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit c5ca7f6)Status: No Issues Found | Recommendation: Merge Executive SummaryReviewed the single-file change that stops flushing the Agents search draft on every keystroke and instead relies on the 500 ms durable draft debounce plus a background/unmount flush hook; the AppState subscription is removed on cleanup and the module-level pending-timer map is bounded, so no memory leak is introduced. Files Reviewed (1 file)
Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
|
bot: Fixed failing checks in d036745. |
Fix proof
Typing in the Agents search box persists the draft with saveDraft then immediately calls flushDraft on every keystroke, which cancels the 500 ms draft debounce and forces an encrypted SQLCipher write
Asserted value:
apps/mobile/src/components/agents/use-session-search-input.ts. Sense check (jev): probability 0.94The scripts were proven on an earlier base, so only the head ran.
Head
d036745dc7e9Head log: backend-assert 48681b688aae exited 0
Changelog for users
Changelog for maintainers
E2E proof
Typing in the Agents search box persists the draft with saveDraft then immediately calls flushDraft on every keystroke, which cancels the 500 ms draft debounce and forces an encrypted SQLCipher write plus an eviction listEntries scan per character, so search typing does extra storage work on the JS thread while the list is filtering; let the debounce stand instead of flushing each keystroke.
Code trace:
apps/mobile/src/components/agents/use-session-search-input.ts:11 changed in e6ebcba5907e0730b29db851f902978e29fb7b07. Sense check (jev): probability 0.95Changed lines
Owner request