Skip to content

AI Bug Fixes: 2026-10-09T23:06:04Z — 1 fixed, 0 introduced, net +1 - #73

Merged
recursive-ai-dev merged 1 commit into
devfrom
ai-fixes/run-2026-10-09T23-06-04Z
Oct 9, 2026
Merged

recursive-ai-dev merged 1 commit into
devfrom
ai-fixes/run-2026-10-09T23-06-04Z

Conversation

@recursive-ai-dev

Copy link
Copy Markdown
Owner

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, applyFrames returned both entries (length 2) and the dialogue handler's records.length > 1 check then triggered the multi-item path, producing:

I've kept those reports separately:
• You like coffee.
• You like coffee.
Which would you like to talk about first?

…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 calling recordFrame for each frame, collapse entries that share the same memory.id (keeping only the first occurrence). The deduplicated list is passed to claims() and returned. This ensures the dialogue handler sees records.length === 1 and follows the correct single-preference reply path.

Bugs Introduced This Run

None (0).

Net Improvement Score

+1 (1 bug fixed, 0 introduced)

Lessons Applied

  • From previous run: look for adversarial/edge-case inputs that expose untested paths. The duplicate-word conjunction is exactly this class of input.
  • Kept the fix minimal and targeted — only 4 lines changed in applyFrames.
  • Added a regression test that verifies both the memory count and the reply text.

Stats

  • Baseline bugs: 0 failing tests, 0 lint errors (no linters configured)
  • New test added: 1 (now 49 total)
  • Tests passing after fix: 49/49
  • Build check: ✅ Kira.html matches modular source

… preference conjunction (e.g. 'I like X and X') triggered the multi-item 'kept separately' reply despite only one memory being created
@recursive-ai-dev
recursive-ai-dev merged commit 6e0733d into dev Oct 9, 2026
3 checks passed
@coderabbitai

coderabbitai Bot commented Oct 9, 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: 84a1e2ba-ebdf-4b1c-8595-8498b6af4978

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