Repository navigation
fix(slack): finalize the actual delivered question card - #118450
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 3:21 AM ET / 07:21 UTC. ClawSweeper reviewWhat this changesThe PR makes Slack question finalization update the specific Slack card that was actually accepted during fallback or multi-message delivery, while sharing the question-finalizer registry across separately loaded Gateway and plugin runtime modules. Merge readiness⛔ Blocked until real behavior proof is added - 3 items remain Keep this PR open. The patch addresses a real Slack delivery/finalization failure and current Priority: P1 Review scores
Verification
How this fits togetherSlack’s outbound plugin posts one or more message parts and reports delivery results through the generic channel bridge. The Gateway keeps a pending-question registry, then calls the registered Slack finalizer when the question is resolved so the delivered card loses its active controls. flowchart LR
A[Agent question payload] --> B[Slack outbound plugin]
B --> C[Accepted Slack question card]
C --> D[Delivery result bridge]
D --> E[Gateway question registry]
E --> F[Resolved answer]
F --> G[Slack card update]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +108, Tests +553. Total +661 across 10 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared lifecycle-owned question registry and exact accepted-card metadata path, then attach redacted exact-head Gateway/fault-proxy proof showing that resolution emits one Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible with medium confidence: current main owns the finalizer registry in a module-local runtime, while the PR’s focused test models separately evaluated Gateway and plugin modules plus the Slack fallback delivery path. A completed live-like Gateway artifact for the exact head is still missing. Is this the best way to solve the issue? Yes, provisionally: the repair records the authoritative accepted-card identity at Slack delivery time and shares the lifecycle-owned registry at its producer boundary, rather than inferring the target later from aggregate receipts. The remaining requirement is proof that this exact path works through a real Gateway run. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c40faefcf522. LabelsLabel justifications:
EvidenceAcceptance criteria:
What 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
HistoryReview history (4 earlier review cycles)
|
|
Merged via squash.
|
) * fix(slack): finalize the actual delivered question card * test(slack): type question delivery response mocks correctly * fix(slack): retain delivered question identity through reconciliation * fix(slack): finalize through the registered channel adapter * fix(slack): share question runtime and finalize accepted cards * test(slack): assert private card metadata with direct JSON serialization
What Problem This Solves
Slack question controls remained active or the wrong Slack message was edited after uploads, chunking, invalid_blocks fallback, and multi-message delivery. Real ephemeral-Gateway testing uncovered two additional owner-boundary defects: externally loaded plugins registered question callbacks in a duplicated SDK runtime, and the original finalizer reconstructed Slack blocks the provider had already rejected.
Canonical Owner-Boundary Repairs
Exact-Head Real Gateway / Slack Transport Proof
The exact published commit 6bfb5ed passed a fresh remote private-QA build and a real ephemeral Gateway with a mock OpenAI model, the actual registered Slack plugin, installed Crabline Slack-compatible transport, and a fault proxy that rejects unsupported native data blocks for BOTH chat.postMessage and chat.update.
The complete sanitized machine verdict was:
{"status":"pass","gateway":"real-ephemeral","provider":"mock-openai","providerRequests":1,"channel":"slack","channelApi":"installed-crabline-local+fault-proxy","nativeRejected":"invalid_blocks","acceptedQuestionCards":1,"questionTs":"171234.001","trailingTs":"171234.002","updatedTs":"171234.001","updateCount":1,"rejectedUpdateDataTables":0,"duplicateQuestionCards":0}The Gateway really resolved the question, updated the accepted 171234.001 card exactly once rather than trailing 171234.002, removed its actions, retained the exact provider-accepted fallback display blocks, and rendered Answered: One. No external Slack workspace or real user account was accessed. Full private build validated 149 SDK entrypoints and Control UI assets/performance gates. Remote proof action: https://github.com/openclaw/openclaw/actions/runs/30793152102
Regression Evidence