Skip to content

AI Bug Fixes: 2026-10-10T00-03-27 — 1 fixed, 0 introduced, net +1 - #74

Merged
recursive-ai-dev merged 1 commit into
devfrom
ai-fixes/run-2026-10-10T00-03-27
Oct 10, 2026
Merged

recursive-ai-dev merged 1 commit into
devfrom
ai-fixes/run-2026-10-10T00-03-27

Conversation

@recursive-ai-dev

Copy link
Copy Markdown
Owner

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 === false for 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.js line 116: added anyNew guard
  • tests/conversation.test.cjs: added regression test "repeating the same preference conjunction says 'already saved', not 'kept separately'"
  • Kira.html: rebuilt artifact with updated modelHash

Bugs Introduced This Run

None (0).

Net Improvement Score

+1 (1 fixed, 0 introduced)

Lessons Applied

  • From prior runs: the multi-item records.length > 1 path is a hotspot for incorrect replies when the created flag is not checked
  • Strategy: probe conjunction edge cases with repeated identical inputs to find semantic inconsistencies in the reply handler

…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
@recursive-ai-dev
recursive-ai-dev merged commit f4c1b24 into dev Oct 10, 2026
2 checks passed
@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: b427e9dd-8a7e-4fd2-a096-0a5541549a6e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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