Repository navigation
fix(slack): keep edited and deleted messages in their original threads - #128768
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 4:31 PM ET / 20:31 UTC. ClawSweeper reviewWhat this changesRoutes Slack message edit and delete events for genuine non-DM thread replies to the existing thread session instead of the parent session. Merge readinessKeep open. The patch is a clean producer-side repair with no blocking code finding: it preserves the nested Slack thread fact through unchanged authorization into the existing thread-aware session router. Exact-head CI is still incomplete with failed compact lanes, and this maintainer-authored, protected-label PR needs the normal maintainer merge decision. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherSlack subtype listeners authorize an incoming event, derive its session route, and enqueue a system event for the agent conversation. Thread timestamps must reach that router so message updates stay associated with the original Slack thread. flowchart LR
A[Slack edit or delete] --> B[Subtype listener]
B --> C[Sender and channel authorization]
C --> D[Thread context classifier]
D --> E[Thread-aware session router]
E --> F[Queued conversation event]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +13, Tests +146, Other 0. Total +159 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the single subtype-to-thread-fact path and existing router; retain the net +13 lines because canonical classification has no smaller owner-boundary home, then merge only after exact-head CI is green. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: current main invokes the route owner without a thread timestamp, while that owner produces a distinct thread session when it receives one. No live Slack execution was performed in this read-only review. Is this the best way to solve the issue? Yes. Deriving the provider thread fact at the subtype owner and handing it through unchanged authorization to the existing resolver is narrower and safer than adding a downstream routing workaround. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2a39c50227ce. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
openclaw#128768) * fix(slack): route threaded edits and deletes to their sessions * fix(slack): tighten threaded-event assertion baseline
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Fixes an issue where users editing or deleting messages inside Slack threads would have those changes queued for the parent conversation instead of the actual thread. Another thread could consume the event first, while the intended conversation never learned that its message had changed.
Why This Change Was Made
Slack includes the parent thread timestamp on the nested current or previous message. Preserve that existing provider fact through Slack's private subtype and system-event owners, reuse the existing genuine-reply classifier, and hand it to the existing thread-aware session router only after unchanged channel authorization. Ordinary direct-message threads and top-level thread roots retain their existing parent sessions; reactions, pins, public APIs, and security policy are unchanged. The repair also removes obsolete subtype-registry indirection and requires a net 13 production lines.
User Impact
Slack users can edit or delete messages in public channels, private channels, group direct messages, and Enterprise workspaces without leaking those updates into another thread or losing them from the correct conversation. Existing ordinary direct-message behavior, sender allowlists, and unthreaded messages continue to work unchanged.
Evidence