Repository navigation
fix(msteams): include users when reading message reactions - #151128
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThe Teams reactions action reads reacting users from Microsoft Graph’s nested identity set while preserving reaction counts. Example: Alice, with ID u1, reacts with like to message-1.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR repairs a confirmed Teams reaction-read bug still present on current main and the latest release; no actionable correctness or security findings remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Teams plugin receives authorized message-tool requests, retrieves the target message through Microsoft Graph, and returns grouped reaction counts and user identities to the agent. flowchart TD
A[Message tool request] --> B[Teams target authorization]
B --> C[Graph message retrieval]
C --> D[Nested identity decoder]
D --> E[Reaction counts and users]
E --> F[Agent action result]
Technical reviewBest possible solution: Land the focused repair in the existing Teams reaction decoder once the normal merge gates pass. Do we have a high-confidence way to reproduce the issue? Current-main source demonstrably drops users from Microsoft’s documented nested response, and the supplied Gateway baseline output confirms that failure; this review executed no target code. Is this the best way to solve the issue? Correcting the existing decoder is the narrowest repair and preserves anonymous counts, optional display names, and the existing action result shape. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0c51cc6dc277. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +1, Tests +8. Total +9 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed October 13, 2026, 2:53 AM ET / 06:53 UTC (Revision 5). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Landed in 4526ce2. Thanks @Leon-SK668! Verified through a built Gateway against a Graph contract server: Teams reaction reads now list who reacted. We folded the cases into the existing reader tests. |
Match the nested user identity set consumed after #151128. Keep the integration expectations for returned users, counts, requests, and live authority unchanged. The original fixture reproduces both read failures on main; the corrected fixture passes both surfaces.
…151128) fix(msteams): read reaction users from Graph's nested identity set Teams reaction reads returned the right counts but empty user lists, because the decoder read reaction.user as a flat user. Graph actually nests it as user.user (an identity set). The decoder now reads the nested user identity. Application and missing identities stay excluded, and counts are unchanged. Proof: built Gateway, /tools/invoke message action `reactions` against a local Graph contract server returning the real Graph shape: main returned correct counts with empty users; the candidate returns the user IDs and names with identical counts. Empty reactions are unchanged. Thanks @Leon-SK668. Co-authored-by: Ayaan Zaidi <[email protected]>
Match the nested user identity set consumed after openclaw#151128. Keep the integration expectations for returned users, counts, requests, and live authority unchanged. The original fixture reproduces both read failures on main; the corrected fixture passes both surfaces.
What Problem This Solves
Fixes: reading Teams message reactions returns correct counts but empty user lists for valid Microsoft Graph responses.
User Impact
The existing
reactionsaction returns the reacting users' IDs and available display names. Reactions without a user ID still contribute to the count; application identities are not presented as people.Why This Change Was Made
Microsoft Graph defines the reaction's
useras an identity set, with the person nested under itsuserproperty. Read that existing contract rather than treating the outer identity set as a flat user.Thanks to @Leon-SK668 for reporting and fixing this. The contributor commits are preserved. No overlap with Pash/Sarah changes.
Evidence
Built current-main baseline
becaa38baaf9f2a650580a831ef8f04511f4c52band candidate in a secretless Node 24 Docker container. Invoked the shipped GatewayPOST /tools/invokeendpoint withtool: "message",action: "reactions", and a Teams conversation/message target. Only external OAuth and Graph HTTP transport was redirected to a local contract server; the message tool, authorization, plugin loading, Graph request construction, and decoder remained real. Both requests returned HTTP 200 and fetched/v1.0/chats/19%3Areaction-proof%40thread.v2/messages/message-1.Input includes two nested human identities (one with a null display name), an application identity, a missing identity, and a second reaction type. Observed output excerpts:
agent --localcompleted throughopenai/gpt-5-miniwith a nonempty visible response,stopReason: "stop", andaborted: false. This checks provider startup, not live Microsoft tenant behavior.This is a two-way door: a revert fully restores prior behavior. No persisted data, configuration, permissions, Graph targets, or reaction-write behavior changes. Blast radius is Teams reaction-read results only.