Repository navigation
fix(message): table silently missing when a presentation table lacks a caption - #196642
hidenori-endo wants to merge 1 commit into
Conversation
A presentation table without a caption, or with an empty cell or duplicate header, is dropped during normalization. The send then delivers the rest of the message and reports success, so a Slack reply shows only its title header and the agent never learns the table is missing. Reject such table and chart blocks in the message send payload with an error naming the block index and its required fields.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR rejects message sends containing tables or charts that presentation normalization would discard. Example: Send “Hosts” with headers [“Name”, “State”], rows [[“web”, “running”]], and no table caption.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 3 items remain Keep open: this addresses a real silent-content-loss bug and adds coverage beyond the earlier caption-only PR, but validation runs too late for decorated cross-context sends and introduces a CI ratchet violation. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe shared message-send builder converts tool and CLI arguments into reply payloads before channel rendering, fallback generation, and delivery. flowchart LR
A[Message tool or CLI] --> B[Shared send builder]
B --> C[Cross-context decoration]
C --> D[Presentation validation]
D --> E[Presentation normalization]
E --> F[Channel rendering and fallback]
F --> G[Transport delivery]
Technical reviewBest possible solution: Validate the original presentation before decoration or content checks can discard blocks, using existing coercion and normalization owners. Do we have a high-confidence way to reproduce the issue? Current-main source establishes omission when text or a title survives a captionless table, consistent with reports on official releases; no target code was executed during this review. Is this the best way to solve the issue? Send-boundary rejection is appropriate, but it must inspect original arguments before cross-context decoration performs normalization. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3f17d921f6cc. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +24, Tests +16, Docs +7. Total +47 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 10, 2026, 6:53 AM ET / 11:53 UTC. |
What Problem This Solves
Fixes: a
messagesend with a presentation table that lacks acaption(or has an empty cell or a duplicate header) reportssent, but the table never reaches the channel. In Slack, only the presentation title header is posted.User Impact
User impact: agents get an error naming
presentation.blocks[<index>]and the required fields, so they can fix and resend the table instead of silently posting a message without its data. Valid tables and charts behave as before.Behavior change: sends that used to succeed with a silently dropped table or chart block now fail. Normalization itself still drops invalid blocks for other producers, as
docs/plugins/message-presentation.mddocuments.Why This Change Was Made
The tool schema stays flat for provider validators, so
normalizeMessagePresentationis where table and chart shapes are enforced, and it drops an invalid block without telling the caller.buildMessagePayloadis shared byexecuteMessageSendand the source-reply path, so it now rejects atableorchartblock that normalization would drop. The Slack docs said a table that cannot render natively "becomes complete text"; they now state the required fields and the error.Evidence
tablewithoutcaption. The tool result wasdeliveryStatus: "sent", andconversations.repliesshowed onlysection+headerblocks. Resending the same rows with acaptionproduced adata_table.src/infra/outbound/message-action-send.validation.test.ts(missing caption, empty cell, incomplete chart) fail on the base and pass with the fix. The valid-table case passes on both.vitest run src/infra/outbound extensions/slack/src/channel.presentation.test.ts extensions/slack/src/reply-blocks.test.ts src/agents/tools/message-tool: 122 files, 1404 tests passed.pnpm check:changed: formatting, lint, and core/test typecheck pass. The dead export scan fails on files this PR does not touch (for examplesrc/agents/models-config.ts).