Repository navigation
feat(bots): show which agent thread sent each message - #2531
Merged
Merged
Conversation
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
In a personal bot chat, it was hard to tell which agent thread sent a report or question. Direct agent messages were kept out of the visible chat.
Change
Direct messages, work reports and relayed questions show the sending agent’s icon and the thread name above the message. The name opens the thread using the existing thread link. The bot processes direct messages quietly.
Verification
npx vitest run tests/bots/botJobs.test.ts tests/bots/botDeviceHeld.test.ts tests/bots/botWorkQuestions.test.ts tests/run/ownerAnswerRelay.test.ts tests/renderer/botChatView.test.ts tests/renderer/botMessageFold.test.ts tests/renderer/relayedAnswerRow.test.ts tests/renderer/threadLinks.test.ts.tsc --noEmit -p tsconfig.node.jsonandtsc --noEmit -p tsconfig.web.jsonpassed.Notes
#2515 also changes the thread-to-bot send path and may need to rebase.
No issue.