Skip to content

fix(line): downgrade row-overflow tables to ordered bullet text - #117481

Merged
steipete merged 2 commits into
openclaw:mainfrom
wangyan2026:fix/line-table-row-overflow-117442
Aug 2, 2026
Merged

steipete merged 2 commits into
openclaw:mainfrom
wangyan2026:fix/line-table-row-overflow-117442

Conversation

@wangyan2026

@wangyan2026 wangyan2026 commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #117442

What Problem This Solves

LINE Flex table renderers silently truncate rows before the existing oversized-table fallback is evaluated, so recipients can receive incomplete tables with no visible indication of data loss.

Two rendering paths both perform lossy row slicing before the 30 KB bubble-size check:

  • Generic Flex-table renderer: rowCells.slice(0, 10) — rows 11+ dropped silently.
  • Two-column receipt renderer: items.slice(0, 12) — rows 13+ dropped silently.

A 15-row short-content table becomes ~3.6 KB after slicing, passes the oversized check, and is delivered as a plausible but incomplete Flex bubble. The adjacent fix #117335 addressed single-row cell-content overflow but did not cover row-count overflow.

Root Cause

  • convertTableToFlexBubble slices data rows to 10 (generic) or passes all rows to createReceiptCard which slices to 12 (receipt).
  • processLineMessage converts a table into its Flex bubble before measuring it against the 30,000-byte limit. Row caps therefore make a row-heavy table appear smaller than its complete representation.
  • Both LINE delivery paths (outbound and auto-reply) already consume the segments fallback contract from fix(line): preserve ordered oversized table delivery #117335, so the ordered bullet-text representation is a shared delivery contract rather than a new path.

Canonical Repair

  • Add tableHasInlineMarkup(table) that reuses renderTableCell's canonical hasMarkup result to classify table layout — identical decision surface as the renderer itself.
  • Add tableRowCap(table) using tableHasInlineMarkup: generic → 10, 2-column without markup → 12, 2-column with markup → 10.
  • Check table.rowCells.length > tableRowCap(table) BEFORE calling convertTableToFlexBubble in the processLineMessage loop.
  • convertTableToFlexBubble also calls tableHasInlineMarkup instead of computing hasInlineMarkup inline, eliminating the second approximation and ensuring both code paths share one canonical layout decision.
  • Overflow tables route to formatOversizedTableAsBullets() + segments ordered delivery, reusing the established fallback contract.

Best-fix judgment: sharing the renderer's exact layout classification is the narrowest safe owner boundary. A second approximation of the markup decision cannot be shown equivalent to the renderer, and a mismatch leaves a silent-truncation gap. The pre-check must consume the same canonical decision as the renderer.

User Impact

LINE recipients now receive complete table data for all tables. A row-overflow table is delivered as ordered bullet text instead of a truncated Flex bubble. Tables within the rendering path caps (≤10 rows generic, ≤12 rows receipt) are unaffected and continue to render as Flex cards.

Evidence

  • node scripts/run-vitest.mjs extensions/line/src/markdown-to-line.test.ts: 31/31
  • node scripts/run-vitest.mjs extensions/line/src/auto-reply-delivery.test.ts: 32/32 (incl. 4 delivery-boundary proofs)
  • node scripts/run-vitest.mjs extensions/line/src/row-overflow-delivery.loopback.test.ts: 4/4 (loopback HTTP transport proof through production outbound adapter)
  • node scripts/run-vitest.mjs extensions/line/src/send.test.ts: 45/45
  • No lockfile, config, protocol, schema-version, or public API change.

Unit Regression Tests (markdown-to-line)

Input Result
15-row 3-col table flexMessages=[], text contains Row1+Row15, segments preserve all rows
14-row 2-col table (no markup) flexMessages=[], text contains Item1+Item14, segments defined
11-row 2-col table with <u>literal</u> + <u>real</u> flexMessages=[], text contains Item11 (renderer-classified as generic, cap=10)
15-row 2-col table with Header/Footer segments ordered: Header → R1…R15 → Footer
12-row 2-col table (no markup) flexMessages=[1], segments=undefined (receipt card preserved)
10-row 3-col table flexMessages=[1], segments=undefined (generic Flex preserved)

Delivery-Boundary Proof (auto-reply-delivery.test.ts)

Four tests in the "row-overflow table delivery boundary" describe block exercise deliverLineAutoReply with real processLineMessage producing segments, then assert all rows reach replyMessageLine / pushMessagesLine — the LINE API call boundary:

  • A: 15-row 2-col table → reply-token path, all 15 rows + Header + Footer in source order, no Table flex
  • B: 11-row 3-col table → push-only path, all 11 rows at pushMessagesLine
  • C: Mixed — kept Flex table + overflow text + surrounding text in source order
  • D: 2-col markup table >10 rows → renderer-classified generic cap, all rows delivered as text

Loopback HTTP Transport Proof — Production Outbound Adapter (row-overflow-delivery.loopback.test.ts)

This test exercises the production outbound adapter (lineOutboundAdapter.sendPayload) against a loopback LINE HTTP server, following the same pattern as Feishu (dm-delivery-loopback.test.ts), Zalo (channel.target-prefix.integration.test.ts), Tlon (outbound.loopback.test.ts), and Slack (probe.transport.test.ts).

The test calls lineOutboundAdapter.sendPayload({ to, payload: { text }, cfg }) which internally invokes the complete production delivery path: processLineMessage → segments.flatMap expansion (outbound.ts:103-111) → pushMessageLine/pushFlexMessage → sendLineProviderMessages → real HTTP fetch to LINE API. A node:http loopback server simulates the LINE Messaging API; a fetch URL-rewrite proxy redirects api.line.me to the loopback server. Config-layer dependencies are the only mocks, matching the pattern in other channel loopback tests.

Four tests prove complete row delivery through the production outbound adapter and real HTTP transport:

Test Input Verified at transport boundary
15-row 2-col overflow 15 rows + Header/Footer Bearer token, all 15 rows in push body, no Table flex, source order (Header<Item1<Item15<Footer)
11-row 3-col overflow 11 rows All 11 rows in push body via production outbound adapter
Mixed kept-flex + overflow kept 2-col table + 13-row overflow + Header/Footer Flex card between Header and overflow text at wire level; Header before Flex, Big1-Big13+Footer after Flex; exact wire-message sequence verified
Bearer token transport 15-row table Authorization: Bearer header present, messages non-empty

After-Fix Runtime Artifact (production outbound adapter + loopback transport)

node scripts/run-vitest.mjs extensions/line/src/row-overflow-delivery.loopback.test.ts

 ✓ |extension-line| extensions/line/src/row-overflow-delivery.loopback.test.ts (4 tests) 402ms
     ✓ delivers all 15 rows of a 2-column overflow table through the production outbound adapter  334ms
     ✓ delivers all 11 rows of a 3-column overflow table through the production outbound adapter
     ✓ preserves source order of kept Flex card alongside overflow text through the production outbound adapter
     ✓ carries a valid Bearer token and recipient through the production outbound adapter

 Test Files  1 passed (1)
      Tests  4 passed (4)

Key Invariant Verified

When table.rowCells.length > tableRowCap(table), processLineMessage routes overflow through formatOversizedTableAsBullets() + segments. The production lineOutboundAdapter.sendPayload expands segments via flatMap in source order (outbound.ts:103-111). The loopback test exercises the complete production outbound path and proves: every overflow row reaches the real LINE HTTP transport boundary intact and in source order, while an at-cap table is retained as a Flex card. The mixed-table test asserts the wire-level message sequence: Header text → Flex card → overflow text (containing Big1–Big13 + Footer), confirming the production ordered-delivery contract.

Diff Shape

  • Production: +28/-15, net +13 lines.
  • Tests: +559/-0 (markdown-to-line +75, auto-reply-delivery +138, loopback +346).
  • No config, protocol, schema-version, or public API change.

AI Assistance

  • AI-assisted: Yes
  • Original model: glm-5.1

@openclaw-barnacle openclaw-barnacle Bot added channel: line Channel integration: line size: S labels Aug 1, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 2, 2026, 2:57 AM ET / 06:57 UTC.

ClawSweeper review

What this changes

This PR sends Markdown tables exceeding LINE’s 10-row generic or 12-row plain two-column Flex cap as ordered bullet-text segments rather than silently omitting later rows.

Merge readiness

⚠️ Needs maintainer review before merge - 3 items remain

The row-overflow fallback addresses a real silent LINE message-loss path and the supplied loopback proof is meaningful, but the final patch duplicates the renderer’s receipt-versus-generic layout decision instead of making it canonical. Keep this PR open for a small mechanical repair so future renderer changes cannot make the pre-check and Flex renderer disagree again.

Priority: P1
Reviewed head: a9569a6c228b41740c19783702f0e0e184abf627

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The proof is strong for the fixed behavior, but the duplicated renderer policy is a material maintainability and future-correctness blocker.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body includes an after-fix loopback run through the production outbound adapter, and the added tests cover row completeness plus ordered delivery through outbound and auto-reply paths; redact any future runtime artifacts before posting.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body includes an after-fix loopback run through the production outbound adapter, and the added tests cover row completeness plus ordered delivery through outbound and auto-reply paths; redact any future runtime artifacts before posting.
Evidence reviewed 5 items Current-main defect and renderer owner: Current main selects the receipt layout only for plain two-column tables, caps generic tables at 10 rows, and caps receipt rows at 12; its oversized guard runs only after rendering, so it observes the truncated bubble rather than the full row set.
Patch duplicates the layout decision: The PR adds a second inline receipt/generic/markup classification before conversion, while convertTableToFlexBubble retains its independent classification. The two decisions are currently equivalent but are no longer owned by one canonical helper.
Delivery contract is shared by both paths: Both the outbound adapter and inbound auto-reply owner expand ordered segments by chunking text while retaining Flex messages in sequence, so the existing fallback contract is the correct boundary for row overflow.
Findings 1 actionable finding [P2] Centralize the renderer row-cap decision
Security None None.

How this fits together

The LINE plugin parses an assistant’s Markdown reply, turning tables into Flex cards when they fit or ordered text segments when they do not. The outbound adapter and inbound auto-reply owner then chunk and send those segments to LINE in source order.

flowchart LR
  A[Markdown reply] --> B[LINE table formatter]
  B --> C{Renderer row layout and cap}
  C -->|Fits| D[Flex table card]
  C -->|Over cap| E[Ordered bullet-text segments]
  D --> F[Outbound and auto-reply delivery]
  E --> F
  F --> G[LINE API messages]
Loading

Before merge

  • Centralize the renderer row-cap decision (P2) - The new pre-check reimplements receipt eligibility and markup detection while convertTableToFlexBubble retains its own classification. They match today, but a later renderer change can make the pre-check retain a Flex table that the renderer still truncates; extract shared helpers and call them from both sites.
  • Resolve merge risk (P1) - Without one shared classification helper, a later change to the renderer’s receipt eligibility or markup handling can send an over-cap table through Flex again even though the pre-check appears to cover it.
  • Complete next step (P2) - A narrow mechanical repair can remove the duplicated layout policy without changing the intended fallback behavior.

Findings

  • [P2] Centralize the renderer row-cap decision — extensions/line/src/markdown-to-line.ts:439-445
Agent review details

Security

None.

PR surface

Source +8, Tests +572. Total +580 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 10 2 +8
Tests 3 572 0 +572
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 582 2 +580

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: extensions/line/src/markdown-to-line.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #117442
Summary: This PR is the direct candidate fix for the canonical row-truncation report; the merged oversized-table work is adjacent and supplies the ordered-segment fallback contract.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Make the row-cap decision canonical (recommended)
    Extract and reuse the renderer’s table-layout and row-cap classification before merging so overflow fallback cannot drift from Flex rendering.
  2. Accept duplicate policy deliberately
    Merge the current behavior knowing that future renderer eligibility changes must update the pre-check in lockstep.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Extract shared table markup and row-cap helpers in extensions/line/src/markdown-to-line.ts; use them from both processLineMessage and convertTableToFlexBubble, preserve the current 10/12-row behavior, and run the focused LINE formatter, auto-reply, outbound, and loopback tests.

Technical review

Best possible solution:

Extract renderer-aligned tableHasInlineMarkup and tableRowCap helpers in extensions/line/src/markdown-to-line.ts, use them from both the pre-check and convertTableToFlexBubble, and retain the existing ordered-segment delivery contract and boundary coverage.

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

Yes. Current main’s generic renderer slices to 10 rows and the plain two-column receipt renderer slices to 12 before processLineMessage measures the resulting bubble; the supplied deterministic tests exercise those exact boundaries.

Is this the best way to solve the issue?

No. Routing row overflow through the existing ordered-segment fallback is the right repair, but duplicating the renderer’s layout decision is not the best durable implementation; one helper should own the classification used by both callers.

Full review comments:

  • [P2] Centralize the renderer row-cap decision — extensions/line/src/markdown-to-line.ts:439-445
    The new pre-check reimplements receipt eligibility and markup detection while convertTableToFlexBubble retains its own classification. They match today, but a later renderer change can make the pre-check retain a Flex table that the renderer still truncates; extract shared helpers and call them from both sites.
    Confidence: 0.95

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 339b9ce0c25e.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): The PR body includes an after-fix loopback run through the production outbound adapter, and the added tests cover row completeness plus ordered delivery through outbound and auto-reply paths; redact any future runtime artifacts before posting.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P1: This repairs deterministic silent loss of rows in a normal LINE channel delivery path.
  • merge-risk: 🚨 message-delivery: The changed formatter branch controls whether recipients receive a Flex card or ordered text messages, including their completeness and order.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): The PR body includes an after-fix loopback run through the production outbound adapter, and the added tests cover row completeness plus ordered delivery through outbound and auto-reply paths; redact any future runtime artifacts before posting.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes an after-fix loopback run through the production outbound adapter, and the added tests cover row completeness plus ordered delivery through outbound and auto-reply paths; redact any future runtime artifacts before posting.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs extensions/line/src/markdown-to-line.test.ts.
  • [P1] node scripts/run-vitest.mjs extensions/line/src/auto-reply-delivery.test.ts.
  • [P1] node scripts/run-vitest.mjs extensions/line/src/row-overflow-delivery.loopback.test.ts.
  • [P1] node scripts/run-vitest.mjs extensions/line/src/send.test.ts.
  • [P1] git diff --check.

What I checked:

  • Current-main defect and renderer owner: Current main selects the receipt layout only for plain two-column tables, caps generic tables at 10 rows, and caps receipt rows at 12; its oversized guard runs only after rendering, so it observes the truncated bubble rather than the full row set. (extensions/line/src/markdown-to-line.ts:328, 339b9ce0c25e)
  • Patch duplicates the layout decision: The PR adds a second inline receipt/generic/markup classification before conversion, while convertTableToFlexBubble retains its independent classification. The two decisions are currently equivalent but are no longer owned by one canonical helper. (extensions/line/src/markdown-to-line.ts:439, a9569a6c228b)
  • Delivery contract is shared by both paths: Both the outbound adapter and inbound auto-reply owner expand ordered segments by chunking text while retaining Flex messages in sequence, so the existing fallback contract is the correct boundary for row overflow. (extensions/line/src/outbound.ts:103, 339b9ce0c25e)
  • Current-head proof coverage: The final PR head adds table-boundary tests plus a loopback HTTP test that checks all overflow rows and mixed Flex/text ordering at the production outbound adapter’s transport boundary; the PR body records the after-fix 4/4 loopback run. (extensions/line/src/row-overflow-delivery.loopback.test.ts:226, a9569a6c228b)
  • Feature provenance: The existing ordered-segment fallback was introduced by the merged oversized-table repair, and the current formatter/refactor ownership is attributable to the same area history. (extensions/line/src/markdown-to-line.ts:437, 4b26a15a1f42)

Likely related people:

  • steipete: Peter Steinberger authored the merged ordered-oversized-table fallback and the latest current-main formatter refactor that owns the shared rendering boundary. (role: feature and recent area owner; confidence: high; commits: a88f3ffc9609, 4b26a15a1f42; files: extensions/line/src/markdown-to-line.ts, extensions/line/src/outbound.ts, extensions/line/src/auto-reply-delivery.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Extract shared layout and row-cap helpers used by both the pre-check and Flex renderer.
  • Run the focused LINE formatter, auto-reply delivery, outbound, and loopback tests on the repaired current head.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (16 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-01T23:02:17.962Z sha e9b0bcc9634b5b947d529c63aa96e529524a2125 :: needs real behavior proof before merge. :: [P2] Remove unused imports from the runtime-artifact test
  • reviewed 2026-08-02T00:28:50.403Z sha e9ce7b7b4ad7a513983797fb6f643ba4948a4e2d :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-02T00:58:09.737Z sha 4c9b6ae6ce03d0aff1475892aafb1698d71f1257 :: needs real behavior proof before merge. :: [P2] Preserve source order in the SDK proof
  • reviewed 2026-08-02T01:13:59.544Z sha 4c9b6ae6ce03d0aff1475892aafb1698d71f1257 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-02T03:07:46.912Z sha d5ee8d75bdd65cea9bab8762d3c5ec07a0ced78a :: needs real behavior proof before merge. :: [P2] Preserve segment order in the SDK proof
  • reviewed 2026-08-02T03:30:22.402Z sha dca8d27418cec6cc6ce5ef77bd047ad640db52ab :: needs real behavior proof before merge. :: [P2] Preserve source order in the loopback transport proof
  • reviewed 2026-08-02T03:46:49.811Z sha b584ba91208d011113f58b7f58a83337c7a73991 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-02T04:02:55.170Z sha 858bcc4 :: needs maintainer review before merge. :: none

@wangyan2026
wangyan2026 force-pushed the fix/line-table-row-overflow-117442 branch 2 times, most recently from 07588d7 to 018589f Compare August 1, 2026 16:28
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Aug 1, 2026
@wangyan2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@wangyan2026
wangyan2026 force-pushed the fix/line-table-row-overflow-117442 branch 5 times, most recently from df89534 to 4c9b6ae Compare August 2, 2026 00:48
@wangyan2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@wangyan2026
wangyan2026 force-pushed the fix/line-table-row-overflow-117442 branch 3 times, most recently from 315b5ba to dca8d27 Compare August 2, 2026 03:24
@wangyan2026
wangyan2026 force-pushed the fix/line-table-row-overflow-117442 branch from dca8d27 to 070c977 Compare August 2, 2026 03:34
@wangyan2026
wangyan2026 force-pushed the fix/line-table-row-overflow-117442 branch from 070c977 to b584ba9 Compare August 2, 2026 03:41
Add tableRowCap() pre-check before Flex conversion so row-overflow
tables route through formatOversizedTableAsBullets() + segments instead
of being silently truncated by the renderer's slice(0,10/12).

- tableHasInlineMarkup() reuses renderTableCell's canonical hasMarkup
- processLineMessage checks row count before convertTableToFlexBubble
- convertTableToFlexBubble shares tableHasInlineMarkup for layout decision
- Delivery-boundary tests in auto-reply-delivery.test.ts
- Runtime artifact tests with LINE SDK provider-facing proof
@wangyan2026
wangyan2026 force-pushed the fix/line-table-row-overflow-117442 branch from b584ba9 to 858bcc4 Compare August 2, 2026 03:55
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 2, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 Aug 2, 2026
@steipete
steipete merged commit 70394e1 into openclaw:main Aug 2, 2026
93 of 99 checks passed
vincentkoc added a commit to yetval/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (99 commits)
  test: consolidate agent tool suites (openclaw#117886)
  fix: remove duplicate plugin CLI registry mock (openclaw#117894)
  fix(gateway): resume shared terminal after slow viewer leaves (openclaw#117847)
  refactor(gateway): remove deferred channel load flag; 503 plugin routes until runtime ready (openclaw#117852)
  test(agents): consolidate OpenClaw tool suites (openclaw#117870)
  fix(ci): repair release validation regressions (openclaw#117723)
  fix(media): reject empty generated assets (openclaw#117875)
  fix: release channel delivery resources reliably (openclaw#117855)
  refactor(cli): unify config-guard policy across dispatch paths (openclaw#117880)
  test: consolidate WhatsApp monitor suites (openclaw#117854)
  fix(heartbeat): retain configured account for accountless commitments (openclaw#117521)
  fix(agents): cap DeepSeek DSML recovery buffer at 256 KB (openclaw#117175)
  [AI] fix(line): downgrade row-overflow tables to ordered bullet text (openclaw#117481)
  fix(agents): fallback after replay-safe silent errors (openclaw#117356)
  fix(telegram): serialize approval ingress sessions (openclaw#117861)
  fix(agents): report truthful embedded startup stages (openclaw#117879)
  test(sqlite): align flip-proof request budgets (openclaw#117878)
  fix(ui): advance gateway-owned channel setup progress (openclaw#117877)
  fix(media): preserve canonical attachment facts across every agent owner (openclaw#117841)
  test(protocol): consolidate validation fixtures (openclaw#117873)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 3, 2026
…penclaw#117481)

Add tableRowCap() pre-check before Flex conversion so row-overflow
tables route through formatOversizedTableAsBullets() + segments instead
of being silently truncated by the renderer's slice(0,10/12).

- tableHasInlineMarkup() reuses renderTableCell's canonical hasMarkup
- processLineMessage checks row count before convertTableToFlexBubble
- convertTableToFlexBubble shares tableHasInlineMarkup for layout decision
- Delivery-boundary tests in auto-reply-delivery.test.ts
- Runtime artifact tests with LINE SDK provider-facing proof

Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: line Channel integration: line merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: LINE markdown tables silently drop rows past the 10/12-row cap, and the 30KB Flex fallback cannot rescue them

2 participants