Repository navigation
AI Bug Fixes: 2026-10-09T23:06:04Z — 1 fixed, 0 introduced, net +1 - #73
Merged
Merged
Conversation
… preference conjunction (e.g. 'I like X and X') triggered the multi-item 'kept separately' reply despite only one memory being created
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bugs Fixed This Run
1. Duplicate word in preference conjunction triggers spurious "kept separately" reply
File:
src/model/dialogue.js—applyFrames()Test:
tests/conversation.test.cjs— "duplicate word in preference list is treated as one preference, not two"Problem: When a user said something like "I like coffee and coffee" (the same preference word repeated in a conjunction), the parser correctly produced two frames (one per word) that both resolved to the same single memory via
recordFrame. However,applyFramesreturned both entries (length 2) and the dialogue handler'srecords.length > 1check then triggered the multi-item path, producing:…even though only one memory was created and displayed twice. The reply is incorrect and confusing.
Fix: Added deduplication by memory ID inside
applyFrames: after callingrecordFramefor each frame, collapse entries that share the samememory.id(keeping only the first occurrence). The deduplicated list is passed toclaims()and returned. This ensures the dialogue handler seesrecords.length === 1and follows the correct single-preference reply path.Bugs Introduced This Run
None (0).
Net Improvement Score
+1 (1 bug fixed, 0 introduced)
Lessons Applied
applyFrames.Stats