Skip to content

fix(signal): approval reactions in Signal groups are ignored - #14

Merged
tomorrowflow merged 1 commit into
mainfrom
fix/signal-group-approval-reaction
Oct 5, 2026
Merged

tomorrowflow merged 1 commit into
mainfrom
fix/signal-group-approval-reaction

Conversation

@tomorrowflow

Copy link
Copy Markdown
Owner

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, with groupInfo next to it on dataMessage, not inside the reaction. handleReactionOnlyInbound read the group only from reaction.groupInfo. It therefore built the lookup key from the sender's DM (signal:<sender>) instead of group:<groupId>, found no registered card, and returned without logging anything. The event handler already resolves the right group for its access check (dataMessage.groupInfo first, then reaction.groupInfo). This change passes that group, and the matching group name, into the reaction path, so access checks and reaction routing agree. Upstream main has the same code.

Evidence

  • Live (2026-10-05, debug logging): the card was registered under default:group:<groupId>:<ts>. The 👍 arrived 7 s later (signal reaction: 👍 from …), and no approval reaction resolved/denied/ignored line followed.
  • Regression test: keys group reactions by the dataMessage group when the reaction carries no groupInfo in event-handler.inbound-context.test.ts. Before the fix it failed with conversationKey +15550001111 instead of group:g1; after the fix it passes. It also asserts that the reaction notification goes to agent:main:signal:group:g1. Cost: 25 ms test time, 12.4 s wall for pnpm test <file> -t … --maxWorkers=1 including setup.
  • Sibling suites pass, 56 tests: approval-reactions, question-reactions, monitor.tool-result.sends-tool-summaries-responseprefix (reaction notifications), signal-ingress.approval-reaction-replay, approval-handler.runtime.
  • Pre-existing failures in the same file, not caused by this change: 32 tests fail with expected inbound MsgContext. They fail identically on a clean upstream/release/2026.9.9 worktree (32 failed / 14 passed there).
  • Checks: oxfmt, oxlint and git diff --check are clean. tsgo:extensions has no Signal errors; the only errors are missing-module errors in ui/ and qa-lab, because the worktree was set up in gateway mode. A code review found no issues.
  • Not yet proven live: the fix still needs to be installed and checked with a real group 👍 under logging.level: "debug".

🤖 Generated with Claude Code

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]>
@tomorrowflow
tomorrowflow merged commit 969d8da into main Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant