Repository navigation
fix(discord-bot): stream T3 replies into Teams group-chat mirrors and name weekly threads - #686
Merged
Conversation
… name weekly threads Watched Teams group chats only got T3 output in their Teams mirror thread after someone mentioned the bot there, and each mention posted another Omegent Info card because the mirror thread had no link of its own. The weekly T3 thread took its title from the passive-chat prompt, so the Discord thread read "This Teams group chat is passive...", and the guest bot echoed every gateway observation a second time. - After a group-chat turn, the gateway bridges the weekly T3 thread into the mirror thread through a delivery-only lease on the mirror channel's binding. The lease shares the mention lease's reference key, so it is restored after restarts and a later mention reuses it. - Mirror threads get their own delivery link, keyed by the Teams conversation, so the info card, stream tips and delivered answers persist per conversation. Restore now looks links up by conversation. - Group-chat rules take an optional `title` and `discordChannelId`; workspaces take `scannerDiscordChannelId` for the built-in scanner chats. - The weekly T3 thread is created with the title "Teams: <chat> · week <date>". - The guest bridge no longer echoes Teams-sourced user messages in weekly group-chat Discord threads. - The `<at>` mention in Teams' HTML copy of a message is no longer reported as attachment text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
Production feedback on this week's Empasa group-chat thread:
What
system:group-chat-mirror. No Teams activity can carry that actor, so the lease only delivers output for a thread the gateway started.title, which wins over the missing activity title.Teams: <title> · week YYYY-MM-DD(no auto-title). The guest's Discord title sync then shows it.sourceHint.actorfeeds identity-map attribution, so it is not display-only.<weekly>#teams-mirror, soupsertThreadInfofinds the existing card.<at>mention markup is removed before comparing Teams' HTML copy with the text. Quoted replies still resolve.discordChannelId, then workspacescannerDiscordChannelId(built-in scanner chats), thendiscord.alertsChannelId.**Author:** textline is the record. Discord-typed and T3-web input still echo.Ops
titleanddiscordChannelIdper pinned chat (aaaomega/ops#215).Tests
discord-bot: 91 files / 1064 tests; typecheck and
vp checkclean.🤖 Generated with Claude Code