Skip to content

Fix reactions targeting stale Linq messages - #167

Merged
fmhall merged 1 commit into
mainfrom
mason/fix-reaction-target
Oct 5, 2026
Merged

fmhall merged 1 commit into
mainfrom
mason/fix-reaction-target

Conversation

@fmhall

@fmhall fmhall commented Oct 5, 2026

Copy link
Copy Markdown
Member

Linq reactions targeted the message cached in the thread snapshot at session creation. A later "Like this message" request could therefore react to an older message. Resolve the target from the current incoming message's authenticated context, require its conversation to match the active thread, and reject missing message IDs.

Validation:

  • pnpm exec vitest run tests/agent/channels/linq-message-delivery.test.ts — 42 tests passed. Five new regressions failed before the fix and cover stale snapshots for add/remove, absent snapshots, missing incoming IDs, and conversation mismatches.
  • pnpm check — all six tasks passed; 876 tests across 95 files. An initial database migration test timed out while the build ran concurrently; the complete rerun passed.
  • pnpm build — passed.
  • Independent read-only review — clean.

A direct retry through Linq's native reaction API was received by the user. The updated handler has not yet been verified in production.

@fmhall
fmhall merged commit be7ff55 into main Oct 5, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
Preview — 8015b933 Deployed Oct 5, 2026 by vercel[bot]
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