Repository navigation
fix(line): skip invalid location messages before delivery - #118064
Conversation
|
Codex review: passed. Reviewed August 2, 2026, 12:45 PM ET / 16:45 UTC. ClawSweeper reviewWhat this changesThis PR prevents LINE locations with blank required title or address values from being sent, while retaining valid assistant text and the existing fallback title for directives that omit only the title. Merge readinessThis is a coherent, narrowly scoped repair for the linked LINE delivery defect. The patch rejects invalid location payloads at parsing and construction boundaries, covers ordinary outbound, inline quick-reply, and inbound auto-reply paths, and leaves valid text deliverable; it should remain open for exact-head CI completion and normal merge gating. Likely related people: Priority: P1 Review scores
Verification
How this fits togetherThe LINE plugin converts assistant directives and direct flowchart LR
A[Assistant reply or direct channel payload] --> B[LINE directive and payload handling]
B --> C[Location message validation]
C --> D[Outbound delivery]
C --> E[Inbound auto-reply delivery]
D --> F[LINE Messaging API]
E --> F
F --> G[Valid reply content reaches user]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +112. Total +114 across 9 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep one canonical location constructor that rejects blank LINE-required fields, ensure every location-bearing delivery path consumes its result, and merge after the exact-head required checks finish successfully. Do we have a high-confidence way to reproduce the issue? Yes. Current main source constructs a blank-address location from the documented directive and sends it through both direct outbound and reply-token paths; the linked issue also supplies a redacted real LINE API validation showing the platform rejects that payload. Is this the best way to solve the issue? Yes. Rejecting the invalid payload at the directive parser and the shared location-message construction boundary is the narrowest maintainable repair because direct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b84e14f22255. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
🦞🧹
This is fix-only; I will not merge this PR. Re-review progress:
|
|
Merged via squash.
|
…18064) Co-authored-by: Tak Hoffman <[email protected]>
Fixes #118029
Summary
Prevent LINE location messages with blank required title or address values from reaching the LINE API. The repair validates the shared location-message construction boundary for direct
channelData.line.locationinputs and rejects malformed blank-address directives before they create invalid channel state.Behavior
Locationfallback for an omitted directive title.Attribution
Reported by @edenfunf in #118029.
Validation
node scripts/run-vitest.mjs extensions/line/src/reply-payload-transform.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.tspnpm format extensions/line/src/reply-payload-transform.ts extensions/line/src/send.ts extensions/line/src/outbound.ts extensions/line/src/auto-reply-delivery.ts extensions/line/src/reply-payload-transform.test.ts extensions/line/src/channel.sendPayload.test.ts extensions/line/src/auto-reply-delivery.test.tsgit diff --checkpnpm check:changedApply
clawsweeper:autogeneratedandclawsweeper:autofix.