Skip to content

fix(bots): keep bot messages in the receiving chat context - #2556

Merged
TheAnimatrix merged 1 commit into
masterfrom
bot-message-recent-context
Dec 1, 2026
Merged

TheAnimatrix merged 1 commit into
masterfrom
bot-message-recent-context

Conversation

@TheAnimatrix

Copy link
Copy Markdown
Collaborator

Problem

Send a message from one bot to another, then ask the recipient what it heard. The message shows in the chat, but it can be missing from the context the bot reads when answering its owner.

Change

Recent chat now carries these messages as quotes attributed to the sending bot. Conversations already open receive recent messages they previously skipped. Older messages follow the existing chat summary limits.

Verification

  • Both idle and busy recipient cases reproduced on the default branch and passed with the fix. The tests check the incoming turn, the next owner turn, and recovery for a conversation opened before the upgrade.
  • The paired-daemon test checks sender attribution and recent chat on both devices, plus retry deduplication and device access refusals. The transport is simulated.
  • npx vitest run tests/bots/botMessages.test.ts tests/bots/botMessagesElsewhere.test.ts tests/bots/botChainHolds.test.ts tests/bots/botChatEpochs.test.ts tests/bots/memory/botChatEpochPack.test.ts tests/bots/memory/botChatDigest.test.ts tests/bots/memory/botContextPack.test.ts tests/bots/memory/botMemoryStore.test.ts tests/bots/memory/botExternalPack.test.ts tests/bots/memory/botReactionsPack.test.ts tests/netEngine/checks/botMessagesAcrossComputers.test.ts passed 191 tests.
  • tsc --noEmit -p tsconfig.node.json passed.
  • The dev daemon started. Live GPT-6.2 Sol testing stopped before the first turn because Codex did not identify its account.

Author review completed with no merge-blocking findings.

No issue

@coderabbitai

coderabbitai Bot commented Dec 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1

  • ready

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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 64943781-2e50-4d75-be5a-d0e409e6e5e8

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

@TheAnimatrix
TheAnimatrix merged commit 02e2041 into master Dec 1, 2026
10 checks passed
@TheAnimatrix
TheAnimatrix deleted the bot-message-recent-context branch December 1, 2026 19:49
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