Skip to content

fix(memory,chat): remove dead Memory Books actions, generation connection picker, send/generation race - #3

Closed
danvitv wants to merge 1 commit into
nightlyfrom
fix/memory-books-cleanup-and-message-race
Closed

fix(memory,chat): remove dead Memory Books actions, generation connection picker, send/generation race#3
danvitv wants to merge 1 commit into
nightlyfrom
fix/memory-books-cleanup-and-message-race

Conversation

@danvitv

@danvitv danvitv commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

Four concerns on top of current nightly.

1. Dead Memory Books buttons removed

Dedup button and Only selected swipes toggle removed with full chain: MemoryDedupService, MemorySwipeFilter, runDedup, memoryDedupServiceProvider, memoryDedupThreshold, toolbar tile, overview switch, 4 translation keys.

2. Write loop dead code

Removed empty no-op _replaceLegacyWriteLoopPrompts() and its v66 call. Legacy compatibility cleanup migrations preserved.

3. Memory Books generation connection picker

Added apiConfigId on MemoryBookApiSettings, MemoryBookApiConfigResolver, connection dropdown in settings sheet, MemoryDraftGenerator uses resolver. Does not change global active connection.

4. User/assistant message ordering race

isGenerating now published only after durable DB append. _sendInFlight guard prevents double-send.

5. Local path cleanup

Machine-specific paths removed from 6 tracked docs, replaced with PATH/env placeholders.

Verification

  • flutter analyze: 0 errors
  • flutter test: 40+ tests passed

…nnection picker, fix send/generation race

- Remove dead Dedup button and 'Only selected swipes' toggle from Memory
  Books, plus all connected code: MemoryDedupService, MemorySwipeFilter,
  runDedup, memoryDedupServiceProvider, memoryDedupThreshold.
- Remove empty Write loop no-op (_replaceLegacyWriteLoopPrompts);
  legacy compatibility cleanup migrations are preserved.
- Add apiConfigId to MemoryBookApiSettings and a new
  MemoryBookApiConfigResolver so Memory Books can use a saved API
  connection without changing the global chat profile. The settings sheet
  gains a connection dropdown; model fetch now resolves against the
  selected profile.
- Fix user/assistant message ordering race: isGenerating is no longer
  published in the optimistic state before the durable DB append, so the
  assistant placeholder cannot appear above the user bubble. A
  _sendInFlight guard prevents double-send.
- Replace machine-specific local paths in tracked docs with PATH/env
  placeholders; original paths catalogued in an untracked
  docs/LOCAL_PATH_REFERENCES.md.
@danvitv

danvitv commented Aug 7, 2026

Copy link
Copy Markdown
Owner Author

Opening against upstream instead.

@danvitv danvitv closed this Aug 7, 2026
@danvitv
danvitv deleted the fix/memory-books-cleanup-and-message-race branch August 7, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant