Repository navigation
fix(line): preserve provider delivery receipts and completed sends - #116879
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 10:46 AM ET / 14:46 UTC. ClawSweeper reviewWhat this changesThis PR routes legacy LINE text sends through the canonical payload sender and returns LINE provider-assigned message IDs and ordered physical-send receipts for push and reply deliveries. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 5 items remain Keep this PR open for explicit maintainer handling. The Priority: P2 Review scores
Verification
How this fits togetherThe LINE channel converts outbound agent or legacy text requests into LINE Messaging API push or reply calls. It then returns provider delivery identities and callbacks to the shared channel runtime so completed sends and later partial failures can be represented accurately. flowchart LR
A[Agent or legacy text request] --> B[LINE outbound adapter]
B --> C[Canonical payload sender]
C --> D[LINE Messaging API]
D --> E[Provider send identities]
E --> F[Receipts and delivery callbacks]
Decision needed
Why: The protected Before merge
Agent review detailsSecurityNone. PR surfaceSource -7, Tests +218. Total +211 across 5 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Re-run the review in a working read-only checkout, inspect the LINE SDK response contract and the current send-result/callback path, then require a redacted real-provider delivery transcript or runtime log that demonstrates returned IDs and partial-delivery reporting before merge. Do we have a high-confidence way to reproduce the issue? No. The PR describes focused mocked regressions, but the required local inspection could not run and no independently verifiable current-main or real LINE reproduction was established. Is this the best way to solve the issue? Unclear. Routing legacy text through the canonical payload sender is plausibly the right owner boundary, but the current implementation, SDK contract, callers, and sibling delivery paths could not be read after the sandbox initialization failure. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against e93de3608161. 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
|
|
Merged via squash.
|
…penclaw#116879) * fix(line): preserve provider message ids in receipts * fix(line): unify legacy text delivery receipts --------- Co-authored-by: Peter Steinberger <[email protected]>
Branch:
codex/auto-qa-line-provider-receiptsCommit:
247ec36f48fc629e979a5bcfaf0ac9e07817fad7Base:
e051a7bb4a6ba69b87391e990b00813114b1d482Summary
processedFlex-only receipt, and missing partial-delivery reporting.Root cause and dependency proof
push/replymessage IDs, losing every actual physical delivery identity.processedfor Flex-only Markdown and bypassed the canonical physical-send progress callback, so completed delivery evidence disappeared when a later Flex send failed.The installed LINE SDK requires
sentMessages: Array<SentMessage>with 1–5 entries for pushes atnode_modules/@line/bot-sdk/lib/messaging-api/model/pushMessageResponse.ts:18and replies atnode_modules/@line/bot-sdk/lib/messaging-api/model/replyMessageResponse.ts:18;node_modules/@line/bot-sdk/lib/messaging-api/model/sentMessage.ts:13requires each providerid: string.extensions/line/src/send.ts:78validates that contract for both operations,extensions/line/src/send-receipt.ts:8keeps ordered physical receipt parts, andextensions/line/src/outbound.ts:278delegates the legacy sender to the canonical payload owner without changing public SDK, configuration, protocol, or authentication contracts.Verification
processedinstead ofm-flex, and zero completed-send callbacks before a second Flex send failed.node scripts/run-vitest.mjs extensions/line/src/send.test.ts extensions/line/src/channel.sendPayload.test.ts extensions/line/src/auto-reply-delivery.test.ts extensions/line/src/auto-reply-delivery-recovery.test.ts extensions/line/src/markdown-to-line.test.ts: 107 tests passed on final commit247ec36f48fc629e979a5bcfaf0ac9e07817fad7using supported Node 24.18.git merge-base e051a7bb4a6ba69b87391e990b00813114b1d482 HEADreturnse051a7bb4a6ba69b87391e990b00813114b1d482; the branch diff contains only fiveextensions/linefiles.oxfmt --checkandgit diff --checkpass; the branch worktree is clean.src/plugin-sdk/channel-send-result.ts:68and an explicit passing exactly-once delivery-callback regression.Root causes fixed
2 distinct canonical LINE provider-identity and legacy-delivery-owner defects.