Repository navigation
fix(line): table cells show email links twice as "addr (mailto:addr)" - #196636
Conversation
Plain-text projection already treated a mailto link labelled with its own address as redundant, but table cells only compared the label to the raw href, so they rendered "[email protected] (mailto:[email protected])" and lost the receipt-card layout. Both paths now share one redundancy check.
|
🦞👀 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 maintainer review before merge. What this changesThis PR makes LINE table cells omit redundant mailto destinations, matching existing plain-text rendering. Example: A two-column Markdown table contains [email protected].
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a current LINE rendering bug with a focused shared comparison; no actionable defects were found, and exact-head CI is still running. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe LINE plugin converts shared Markdown IR into text and Flex cards, which its outbound and automatic-reply delivery paths send through LINE's messaging client. flowchart TD
A[CLI or Gateway message] --> B[LINE outbound adapter]
C[Automatic reply] --> D[LINE reply delivery]
B --> E[Markdown IR and LINE renderer]
D --> E
E --> F[Text or Flex payload]
F --> G[LINE messaging client]
Technical reviewBest possible solution: Use the shared comparison in the existing LINE renderer and retain the focused table regression. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the mismatch, and the supplied built-Gateway traces reproduce it on the unchanged base renderer; no target code was executed during this read-only review. Is this the best way to solve the issue? The patch repairs the producer's comparison through one private helper, preserves differently labelled destinations, and adds no competing renderer or public contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against da0190f377a8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +3, Tests -1. Total +2 across 2 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:
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 HistoryReview history (3 earlier review cycles)Reviewed November 10, 2026, 10:23 AM ET / 15:23 UTC (Revision 4). |
|
Real behavior proof. I ran the real LINE renderer ( Input: Text of the table row in the Flex card:
On main the card repeats the address with a Caveat: this runs the renderer, not a send to the LINE API. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Delivery proof through the shipped Setup:
Command (same for both): Both printed
The branch sends the address once. It also picks the receipt-card layout, the same one a plain @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Proof on a built Gateway (node 24.22.1, secretless Docker). The LINE channel talks to a local HTTPS stand-in for
Bug case: Controls (same output on main and the candidate, both runs, both paths): Focused checks on the candidate: On top of the contributor's commit: merged main, cut the mailto check down to |
|
/refresh-security-review 8619513 |
|
Landed in b21829a. Thanks @Mahdi-Hasan. LINE tables no longer repeat email addresses. |
…openclaw#196636) fix(line): table cells show email links twice as "addr (mailto:addr)" In a LINE table cell, [[email protected]](mailto:[email protected]) showed as "[email protected] (mailto:[email protected])", and two-column receipt tables lost their card layout. The table-cell check compared the label only to the raw link, while the plain-text path already ignored the mailto: prefix. Both now use one shared check, so an email link whose label matches its address shows the address once and the receipt card layout is kept. Evidence: a built Gateway on node:24.22.1 in secretless Docker with a local HTTPS stand-in for api.line.me recording every push, each case sent through openclaw message send --channel line and through the Gateway's message tool, two runs each. On main the cell read "[email protected] (mailto:[email protected])" in the generic table layout; with this change it reads "[email protected]" in the receipt card. A table with different labels, the same email link outside a table, an https link equal to its label and a table without links are the same on both. Details: openclaw#196636 (comment). Thanks @Mahdi-Hasan. Co-authored-by: Ayaan Zaidi <[email protected]>
What Problem This Solves
Fixes: a LINE table cell with an email link like
[[email protected]](mailto:[email protected])shows the address twice, as[email protected] (mailto:[email protected]).User Impact
User impact: email links in LINE table cards now read
[email protected], the same as the same link outside a table. Two-column tables that contain only such links keep the receipt-card layout instead of falling back to the generic styled table.Why This Change Was Made
The plain-text path already skips the
(href)suffix when the label equals the href withoutmailto:. The table-cell path only compared the label to the raw href, so it appended the suffix and marked the cell as styled markup. Both paths now call one shared check, so they cannot drift apart again.Evidence
Built Gateway proof (main vs this branch, two runs each, CLI and Gateway delivery, with controls): #196636 (comment)
Test in
extensions/line/src/markdown-to-line.test.ts(folded into the existing empty-cells table test): a table with the mailto link must render the same card as the same table with plain text.processLineMessageshows the cell text[email protected] (mailto:[email protected]).[email protected].pnpm test extensions/line/src --maxWorkers=1passes 59 files (523 tests, 1 skipped).pnpm format:checkandoxlinton the touched files: clean.Real behavior proof
Delivery proof through the shipped
openclaw message send --channel linepath.Setup:
[email protected]with@openclaw/linefrom npm.pnpm build, run withnode openclaw.mjs.HTTPS_PROXYpointed at a local mitmproxy. A script there answeredapi.line.melocally with 200 and logged the request body. Nothing reached the real LINE API.Command (same for both):
Both printed
✅ Sent via LINE. Message ID: 1. Text nodes in the capturedPOST /v2/bot/message/pushFlex body:"Name","Contact","Bob","[email protected] (mailto:[email protected])""Name / Contact","Bob","[email protected]"The branch sends the address once. It also picks the receipt-card layout, the same one a plain
[email protected]cell gets.