Skip to content

feat: render responsive Markdown tables - #93

Merged
shakkernerd merged 6 commits into
openclaw:mainfrom
jjjhenriksen:codex/markdown-tables-pr
Jul 20, 2026
Merged

shakkernerd merged 6 commits into
openclaw:mainfrom
jjjhenriksen:codex/markdown-tables-pr

Conversation

@jjjhenriksen

@jjjhenriksen jjjhenriksen commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • render sanitized Markdown tables inside dedicated horizontal scroll wrappers
  • preserve native table layout and GFM column alignment
  • support both GFM-generated tables and sanitized raw HTML tables
  • expose only genuinely overflowing tables as named keyboard-focusable groups
  • keep table interaction from opening the surrounding message thread
  • regenerate the checked-in embedded webassets

Review-driven changes

  • moved wrapping from the Marked renderer to the final rendered DOM so raw HTML tables cannot bypass containment
  • made focus, role, and accessible labeling conditional on actual overflow and responsive to viewport changes
  • applied the shared Markdown enhancement to channel messages, thread roots and replies, and agent preambles
  • normalized existing table wrappers without nesting them
  • moved proof images into docs/proof

Verification

  • focused exact-head Chromium flow covers GFM, raw HTML, prewrapped raw HTML, narrow and wide states, resize transitions, keyboard scrolling, alignment, document containment, message-row clicks, thread roots, and thread replies
  • pnpm build
  • pnpm --filter @clickclack/web typecheck
  • targeted oxlint and oxfmt --check
  • deterministic embedded asset regeneration
  • exact-head GitHub checks: Go, TypeScript, Playwright E2E, Docker Image, macOS Desktop, Linux Desktop, Windows Desktop, and Socket Security all passed

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 17, 2026
@jjjhenriksen
jjjhenriksen force-pushed the codex/markdown-tables-pr branch from 6ad85f9 to 14dc0d5 Compare July 17, 2026 04:36
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. P2 Normal priority bug or improvement with limited blast radius. labels Jul 17, 2026
@clawsweeper

clawsweeper Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 17, 2026, 2:24 AM ET / 06:24 UTC.

Summary
The PR wraps rendered GFM tables in a keyboard-focusable horizontal scroller, adds native-table styling, regenerates embedded web assets, adds before-and-after proof images, and adds an authenticated Playwright test.

Reproducibility: not applicable. as a bug-report gate; the PR nevertheless provides a high-confidence authenticated app flow demonstrating wide-table overflow and the improved result.

Review metrics: 3 noteworthy metrics.

  • Changed surface: 16 files, 131 additions, 24 deletions. The authored behavior is concentrated in two source files and one test; most other paths are regenerated assets or proof images.
  • Behavior coverage: 1 authenticated E2E test added. The test exercises the real composer, rendered message row, overflow dimensions, focus, and keyboard scrolling.
  • CI result: 7 of 7 checks passed. The exact reviewed head is green across frontend, backend, desktop, E2E, and container lanes.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Next step before merge

  • No automated repair is needed; maintainers can review and merge the exact green head through the normal PR path.

Security
Cleared: The patch changes sanitized Markdown rendering, CSS, first-party generated assets, proof media, and tests without adding dependencies, permissions, secrets handling, downloads, or external code execution.

Review details

Best possible solution:

Merge the exact green head so Markdown tables retain native layout and alignment while wide content remains contained, keyboard reachable, and covered by the authenticated app-flow test.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bug-report gate; the PR nevertheless provides a high-confidence authenticated app flow demonstrating wide-table overflow and the improved result.

Is this the best way to solve the issue?

Yes. A dedicated overflow wrapper preserves native table layout and GFM alignment more safely than changing the table itself into a block scroller, and the patch validates that behavior end to end.

AGENTS.md: found, but no applicable review policy affected this item.

Codex review notes: model internal, reasoning high; reviewed against 064a46fc73e1.

Label changes

Label justifications:

  • P2: This is a bounded user-facing rendering and accessibility improvement with limited blast radius and complete proof.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Authenticated ClickClack before-and-after screenshots and measured live DOM behavior show the wide table contained and horizontally scrollable with preserved alignment and keyboard interaction.
  • proof: sufficient: Contributor real behavior proof is sufficient. Authenticated ClickClack before-and-after screenshots and measured live DOM behavior show the wide table contained and horizontally scrollable with preserved alignment and keyboard interaction.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Authenticated ClickClack before-and-after screenshots and measured live DOM behavior show the wide table contained and horizontally scrollable with preserved alignment and keyboard interaction.
Evidence reviewed

What I checked:

  • Renderer change: The Marked table renderer wraps sanitized GFM tables in a named horizontal-scroll region while retaining the renderer's native table output. (apps/web/src/lib/format.ts:4, fa6ab55424e3)
  • Responsive styling: The wrapper contains horizontal overflow while the table retains native table display, GFM alignment, full-width minimum sizing, borders, and existing design tokens. (apps/web/src/styles/messages.css:1262, fa6ab55424e3)
  • Real-app regression coverage: The Playwright test creates an isolated workspace and channel, sends a wide table through the real composer, verifies overflow, focuses the region, and confirms keyboard scrolling. (tests/e2e/markdown-table.spec.ts:5, fa6ab55424e3)
  • Exact-head validation: All seven reported GitHub checks succeeded, including TypeScript, Playwright E2E, Go, desktop-platform, Docker-image, and build validation. (fa6ab55424e3)
  • Review continuity: Five completed ClawSweeper review cycles through the current head reported no findings; the latest assessment found sufficient proof and a correct patch. (fa6ab55424e3)
  • Current-main necessity: The supplied current-main state does not contain the wrapper, styling, or focused regression test introduced by this still-open cleanly mergeable PR. (apps/web/src/lib/format.ts:1, 064a46fc73e1)

Likely related people:

  • jjjhenriksen: Prior released OpenClaw history credits this contributor for ClickClack delivery work, providing relevant domain familiarity beyond this proposal. citeturn11search0turn11search1. (role: adjacent ClickClack feature contributor; confidence: medium; commits: fa6ab55424e3; files: apps/web/src/lib/format.ts, apps/web/src/styles/messages.css, tests/e2e/markdown-table.spec.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (5 earlier review cycles)
  • reviewed 2026-07-17T04:47:43.343Z sha eb39fa2 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-17T05:00:25.274Z sha 869f978 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-17T05:08:42.487Z sha 90b0a94 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-17T05:31:51.222Z sha a9916d4 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-17T05:42:40.585Z sha fa6ab55 :: needs maintainer review before merge. :: none

@jjjhenriksen jjjhenriksen changed the title Render wide Markdown tables without breaking message layout feat: render responsive Markdown tables Jul 17, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 17, 2026
@shakkernerd shakkernerd self-assigned this Jul 20, 2026
@shakkernerd
shakkernerd force-pushed the codex/markdown-tables-pr branch from fa6ab55 to c7d9ada Compare July 20, 2026 22:06
@shakkernerd
shakkernerd merged commit 0d204cd into openclaw:main Jul 20, 2026
9 checks passed
@shakkernerd

Copy link
Copy Markdown
Contributor

Merged using rebase.

What changed after review:

  • Moved table wrapping to the sanitized rendered DOM so GFM, raw HTML, and existing wrappers share one containment path.
  • Made keyboard focus and accessible labeling conditional on actual overflow, including resize updates and message-row click isolation.
  • Expanded browser coverage, aligned proof assets, and regenerated embedded webassets.

Verification:

  • Rebased/refreshed onto current origin/main before pushing.
  • Focused exact-head Chromium flow: tests/e2e/markdown-table.spec.ts passed.
  • Full build, web typecheck, targeted lint/format checks, and deterministic asset regeneration passed.
  • Auto-review: unavailable; manual exact-head review found no actionable issues.
  • GitHub checks: Go, TypeScript, Playwright E2E, Docker Image, macOS Desktop, Linux Desktop, Windows Desktop, and Socket Security green; no required checks configured.

Landed on main:

Thanks @jjjhenriksen!

@jjjhenriksen
jjjhenriksen deleted the codex/markdown-tables-pr branch July 20, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants