Repository navigation
AI Bug Fixes: 2026-10-10T00-03-27 — 1 fixed, 0 introduced, net +1 - #74
Merged
Merged
Conversation
…t separately' — when all items in a conjunction are already saved, the multi-item branch now checks r.created to distinguish new vs existing memories and selects the appropriate reply
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. Repeated preference conjunction incorrectly replies "kept separately" (dialogue.js:116)
Bug: When a user repeats a multi-item preference conjunction (e.g., "I like coffee and tea" said twice), the multi-item handler branch (
records.length > 1) was triggered unconditionally without checking whether any items were newly created. On the second submission, both memories already existed (created === falsefor all records), but the code still replied "I've kept those reports separately:" — implying a new storage operation had occurred when nothing was actually stored.Fix: Added a
anyNew = records.some(r => r.created)check before selecting the reply. When all items are already saved, the reply now says "I have those saved already:" instead of the misleading "kept separately" message. The existing "kept separately" path is preserved for genuinely new multi-item conjunctions.Files changed:
src/model/dialogue.jsline 116: addedanyNewguardtests/conversation.test.cjs: added regression test "repeating the same preference conjunction says 'already saved', not 'kept separately'"Kira.html: rebuilt artifact with updated modelHashBugs Introduced This Run
None (0).
Net Improvement Score
+1 (1 fixed, 0 introduced)
Lessons Applied
records.length > 1path is a hotspot for incorrect replies when thecreatedflag is not checked