Repository navigation
fix(line): preserve ordered oversized table delivery - #117335
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 6:43 AM ET / 10:43 UTC. ClawSweeper reviewWhat this changesThe branch converts oversized Markdown tables to readable LINE text while retaining their authored position among valid table and code Flex cards in normal sends and auto-replies. Merge readinessThis PR repairs a current LINE message-delivery defect with a focused shared representation for authored order; no concrete patch defect was found. It remains open for protected maintainer review and completion of the exact-head LINE/runtime checks. Likely related people: steipete (high confidence) and zilokki-bot (medium confidence). Priority: P2 Review scores
Verification
How this fits togetherThe LINE plugin converts Markdown into plain text and Flex cards, then separate outbound and inbound-auto-reply owners batch those provider messages. The change gives those owners an ordered stream only when an oversized table cannot safely become a Flex bubble. flowchart LR
A[Markdown response] --> B[LINE Markdown conversion]
B --> C{Flex bubble fits limit?}
C -->|yes| D[Flex card segment]
C -->|no| E[Plain-text table segment]
D --> F[Ordered LINE messages]
E --> F
F --> G[Outbound or auto-reply batching]
G --> H[LINE recipient]
Decision needed
Why: The implementation changes user-visible ordering across two LINE delivery owners, and the protected maintainer label requires an explicit human merge decision despite the absence of a concrete patch defect. Before merge
Agent review detailsSecurityNone. PR surfaceSource +136, Tests +190. Total +326 across 7 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Retain the optional ordered-segment path only for oversized-table fallback, preserve the legacy text-plus-Flex behavior for ordinary messages, and merge once protected maintainer review and the exact-head checks are complete. Do we have a high-confidence way to reproduce the issue? Yes. Current main separates all table Flex cards from text, and the branch’s focused regression cases exercise an oversized table positioned between valid cards in both delivery owners. Is this the best way to solve the issue? Yes. The converter is the only owner that knows the authored block order, and optional ordered segments let both existing delivery owners consume that fact without altering ordinary-message behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 992aa458aba5. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* fix(line): preserve ordered delivery of oversized markdown tables * fix(line): type ordered delivery at provider and test boundaries * fix(line): narrow ordered provider messages to flex or text --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
LINE rejects a complete push or reply when one Markdown table produces a Flex
bubble above its official 30 KB UTF-8 JSON limit. Merely moving that table into
plain text also breaks source order whenever valid table or code cards remain.
Why This Change Was Made
Keep the existing exported
{ text, flexMessages }contract and all ordinarymessage behavior intact. Add optional ordered segments only for oversized-table
fallback, reuse the canonical Markdown bullet renderer, and have both existing
LINE delivery owners consume that same source order. Existing 5,000-character
chunking, five-message reply/push batching, quick-reply ownership, media policy,
receipts, and partial-delivery handling stay with their current owners.
Official provider contract: https://developers.line.biz/en/reference/messaging-api/nojs/#bubble
User Impact
Oversized ASCII and multibyte Unicode tables arrive completely as readable
bullet text in the correct position between valid cards. Authored links and
code cards survive; quick replies remain attached only to the final visible
message, even when that message is a Flex card and delivery spans reply-token
and push-continuation batches.
Evidence
outbound adapter, and inbound auto-reply owner.
@line/[email protected]: 41 authenticated localhost HTTPrequests through both real production callers, covering ASCII, multibyte
Unicode, ordered cards, reply-token overflow, push continuation, and final-only
quick replies. This is an authenticated local provider-contract fixture, not a
claim of external live LINE access.
outbound sends; its returned receipt and final observer both identify
line-27. Every provider request contains at most five messages.clean
main. Four independent hostile whole-owner reviews are clean.findings, confidence 0.99; exact added content passes TruffleHog.