Repository navigation
fix(signal): approval reactions in Signal groups are ignored - #14
Merged
Merged
Conversation
signal-cli delivers a group reaction as dataMessage.reaction with groupInfo beside it on dataMessage, not inside the reaction. handleReactionOnlyInbound read the group only from reaction.groupInfo, so a 👍 on a group approval card was looked up under the sender's DM key, found no target, and was dropped silently. Question reactions and reaction notifications took the same wrong key. Pass the group the handler already resolves for access checks into the reaction path, keeping reaction.groupInfo as the fallback for envelopes that carry it there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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.
What Problem This Solves
Fixes: a 👍 reaction on an approval card in a Signal group does nothing, while the same reaction in a direct chat resolves the approval.
User Impact
User impact: operators can approve or deny plugin and exec approvals by reacting in a Signal group, the same way they already can in a direct chat. Question reactions and reaction notifications in groups also reach the group session again, not the reacting user's DM.
Why This Change Was Made
signal-cli sends a group reaction as
dataMessage.reaction, withgroupInfonext to it ondataMessage, not inside the reaction.handleReactionOnlyInboundread the group only fromreaction.groupInfo. It therefore built the lookup key from the sender's DM (signal:<sender>) instead ofgroup:<groupId>, found no registered card, and returned without logging anything. The event handler already resolves the right group for its access check (dataMessage.groupInfofirst, thenreaction.groupInfo). This change passes that group, and the matching group name, into the reaction path, so access checks and reaction routing agree. Upstreammainhas the same code.Evidence
default:group:<groupId>:<ts>. The 👍 arrived 7 s later (signal reaction: 👍 from …), and noapproval reaction resolved/denied/ignoredline followed.keys group reactions by the dataMessage group when the reaction carries no groupInfoinevent-handler.inbound-context.test.ts. Before the fix it failed withconversationKey+15550001111instead ofgroup:g1; after the fix it passes. It also asserts that the reaction notification goes toagent:main:signal:group:g1. Cost: 25 ms test time, 12.4 s wall forpnpm test <file> -t … --maxWorkers=1including setup.approval-reactions,question-reactions,monitor.tool-result.sends-tool-summaries-responseprefix(reaction notifications),signal-ingress.approval-reaction-replay,approval-handler.runtime.expected inbound MsgContext. They fail identically on a cleanupstream/release/2026.9.9worktree (32 failed / 14 passed there).git diff --checkare clean.tsgo:extensionshas no Signal errors; the only errors are missing-module errors inui/andqa-lab, because the worktree was set up in gateway mode. A code review found no issues.logging.level: "debug".🤖 Generated with Claude Code