Repository navigation
feat(slack): support native data visualizations - #104539
Conversation
75b39c9 to
d84018b
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 75b39c980e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const rawBlockAccessibilityText = trimmedMessage | ||
| ? [ | ||
| trimmedMessage, | ||
| ...(completeBlockFallbackText.includes(trimmedMessage) ? [] : [completeBlockFallbackText]), |
There was a problem hiding this comment.
Preserve block fallback when text is only a substring
When a raw Slack block send includes message text that happens to be a substring of the rendered block fallback (for example message OK with a section block Not OK), this substring check treats the block as already represented and posts only OK as the top-level Slack fallback. That loses the block content in notifications/screen-reader text even though the previous paragraph-based de-dupe would have kept both pieces of user-visible content.
Useful? React with 👍 / 👎.
| const fallbackText = | ||
| contentContainsBlockText | ||
| ? trimmedContent | ||
| : blockText && !blockText.includes(trimmedContent) |
There was a problem hiding this comment.
Preserve edit content when it is only a substring
For edited Slack messages with both content and blocks, this branch drops the authored edit text whenever it is merely a substring of the block fallback; e.g. content OK plus a block rendered as Not OK produces only Not OK as the edited message fallback. That changes the user-visible notification/screen-reader text for edits and can remove the caller's explicit content instead of only de-duping an exact represented paragraph.
Useful? React with 👍 / 👎.
|
Codex review: needs real behavior proof before merge. Reviewed July 11, 2026, 12:10 PM ET / 16:10 UTC. Summary PR surface: Source +735, Tests +106, Docs +8. Total +849 across 49 files. Reproducibility: yes. for the review blockers: the current-head branches deterministically reproduce text loss with authored Review metrics: none identified. Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Preserve explicit authored text and complete visible block fallback using exact represented-fragment or paragraph deduplication, add both substring regression cases, and provide redacted live Slack proof for native chart/table rendering and rejected-block fallback delivery. Do we have a high-confidence way to reproduce the issue? Yes for the review blockers: the current-head branches deterministically reproduce text loss with authored Is this the best way to solve the issue? No in its current form. Slack is the correct owner boundary, but fallback deduplication must compare complete represented fragments rather than arbitrary substrings before this broad delivery rewrite is safe. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4271b82fd111. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +735, Tests +106, Docs +8. Total +849 across 49 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
4edc26c to
938ea04
Compare
938ea04 to
d1c528a
Compare
|
Merged via squash.
|
What Problem This Solves
Resolves a gap where Slack users could ask for chart/table-style visual output, but OpenClaw could only degrade that content to generic text or unsupported Block Kit shapes instead of using Slack's native chart and table blocks with reliable fallbacks.
Why This Change Was Made
Adds Slack-native data visualization/table rendering behind the existing portable presentation path, with ordered fallback delivery for Slack plans that reject native data blocks. The change also hardens Slack fallback/accessibility behavior for edits, slash responses, previews, raw blocks, and multi-message delivery so authored text, controls, and data rows stay visible exactly once.
User Impact
Slack conversations can now render portable line, bar, pie, and area charts plus data tables as native Slack blocks when the workspace supports them, while unsupported clients/workspaces receive readable ordered fallback text. Discord and core outbound paths keep their existing portable presentation behavior.
Evidence
steipeteclaw: native chart/table blocks rendered; fallback path exercised where Slack rejected native data.patch is correct).run_d4a3245ab5a9—corepack pnpm tsgo:extensions.run_088a58fd9332— 425 Slack tests plus Discord/core touched tests passed.