Repository navigation
fix(line): keep the words and options a quick-reply prompt leaves behind - #134976
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
2b33b42 to
062122e
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 6:25 PM ET / 22:25 UTC. ClawSweeper reviewWhat this changesThe PR preserves select-only LINE prompts, fallback content, and choices beyond LINE’s shared 13-item quick-reply budget, with delivery-path regression coverage and documentation. Merge readinessKeep this PR open: it is the active candidate fix for the linked, still-open LINE content-loss issue, and the exact head has not merged. The renderer now uses the shared fallback path to preserve text and global quick-reply overflow across both LINE delivery paths; no blocking correctness finding was found. Priority: P1 Review scores
Verification
How this fits togetherThe LINE plugin converts shared agent message presentations into LINE text, Flex cards, and quick replies. The renderer feeds both inbound auto-replies and the core outbound adapter before requests reach LINE’s reply or push APIs. flowchart LR
A[Agent presentation] --> B[Channel adaptation]
B --> C[LINE presentation renderer]
C --> D[Text, Flex card, quick replies]
D --> E[Auto-reply delivery]
D --> F[Outbound adapter]
E --> G[LINE reply or push API]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceSource +29, Tests +388, Docs +9. Total +426 across 4 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the renderer-local, one-pass fallback accounting once exact-head checks are green, leaving the linked issue to close through its normal merged-fix relationship. Do we have a high-confidence way to reproduce the issue? Yes. The linked report supplies a concrete select-only payload, and current source traces it through the renderer and both delivery callers; this read-only review did not rerun the scenario. Is this the best way to solve the issue? Yes. Reusing the existing shared presentation fallback renderer at the LINE renderer boundary preserves content for both delivery callers without adding a parallel delivery flow. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a9469a2119a6. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
062122e to
fc94db1
Compare
fc94db1 to
d7c76e4
Compare
Keep authored prompts and globally overflowed choices in the shared fallback rendering. Bound labels at native encoding and retain generated text when caller fallback text is blank. Collapse the renderer to one budgeted pass. Co-authored-by: xuyuanhao <[email protected]>
…ind (openclaw#134976) * fix(line): keep the words and options a quick-reply prompt leaves behind * fix(line): preserve select questions and overflow options Keep authored prompts and globally overflowed choices in the shared fallback rendering. Bound labels at native encoding and retain generated text when caller fallback text is blank. Collapse the renderer to one budgeted pass. Co-authored-by: xuyuanhao <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: xuyuanhao <[email protected]>
Closes #134975
What Problem This Solves
Fixes an issue where LINE users receive choice buttons without the question, title, or some of the offered choices. Select-only presentations discarded their surrounding text, and multiple selects could exceed LINE's shared 13-button row. The API accepted the shortened message, so delivery looked successful even when content was missing.
Why This Change Was Made
The LINE renderer now puts content that has no native home through the existing shared fallback renderer. Each select keeps its prompt beside its overflow choices; content already carried by a Flex card is not repeated. One loop owns the native button budget and the remaining text.
The maintainer improvement also preserves full prompts and overflow labels until native encoding, where LINE's 20-character quick-reply label limit belongs. Missing, empty, or whitespace-only authored fallback text no longer erases the generated question. Redundant flattened-option arrays, parallel button-action arrays, and drawn-option bookkeeping were removed. No configuration, schema, dependency, or authorization policy changes.
User Impact
Users can read the question and every choice on both replies and explicit sends. Native controls keep their original action values; choices beyond the native row remain visible as text. The LINE documentation describes this behavior. Thanks @edenfunf; original contributor credit is preserved as xuyuanhao.
Evidence
Independently verified from code and isolated execution. The affected pre-PR owner is byte-identical on captured main
0ac185506ca7f4d2049e58d340279de808526850and stablev2026.8.2(0965053fe6b9341776df147a6934b7485c60b5ca). Four added regressions first failed on the contributor implementation: absent/empty/blank fallback text and early truncation of prompts/overflow labels.pnpm check:changedpasses, including plugin and test typechecks, lint, format, boundary/dead-export checks, database/media guards, and runtime-cycle checks.message.actionRPC sends through the native transport code. Both builds use the same synthetic HTTPS LINE endpoint; only the renderer changes for the controlled before/after comparison.Every pre-PR request was accepted despite the missing content. The improved mixed-card case spans two requests on the reply path and eight on the push path; all action values survive and quick replies appear only on the final message. Invalid webhook signatures return 401.
The tested improved renderer SHA-256 is
f217e47ce472cc75daee77273bfe786d56a1e698bcf1b06ce808730f3b1b8a7c, identical to maintainer commit4dd01333e0bf9e226ab343f3b2d4875252f2e881. The controlled worker checkout remains at contributor headd7c76e4d38c57fb970b2a100af871526b0ec65e6; source hashes bind each rebuilt variant, rather than claiming an uncommitted variant was that Git commit.Proof run: before/after Gateway replay. Verdict SHA-256: before
bed8c58c103996be4db77459b6400209b767d5158744d59bc486088e6797f15e; improved7965614f06ac25de26199960b1317fa2861175818386edb818cf52af734bed89.This is real Gateway and transport execution against a synthetic LINE API, not authenticated LINE service or native iOS/Android UI proof. No native-client screenshots were available. The registered command supplies the exact payload; model generation quality is outside this test.
Direct contract checks: installed
@line/bot-sdk11.2.0 and LINE's quick-reply reference and label specifications.Independent Codex review of the complete contributor-plus-maintainer diff is clean at P0–P2. Production delta is +70/-41 (net +29), reduced by 13 lines from the contributor implementation; the remaining growth preserves formerly discarded semantic content at its owning renderer. Test delta is +393/-5 (includes formatting), docs +9/-0.
The fresh ClawSweeper review completed on maintainer head
4dd01333e0bf9e226ab343f3b2d4875252f2e881at 22:25 UTC with no actionable correctness finding or Rank-up moves. Its remaining production-growth concern is addressed by the single renderer owner and rationale above. Exact-head CI passed; landing uses the native prepare/merge gates.