Repository navigation
fix(bots): keep bot messages in the receiving chat context - #2556
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 1
Please check the settings in the CodeRabbit UI or the
|
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.
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
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.tspassed 191 tests.tsc --noEmit -p tsconfig.node.jsonpassed.Author review completed with no merge-blocking findings.
No issue