Repository navigation
Conversation
|
Thanks for the contribution. This PR still needs the requested real-behavior proof, and the branch has been idle since that ask. Close this stalled contributor PR: the underlying current-main defect remains, but the branch has been unchanged since July 21 and has not supplied the real transport proof requested more than 14 days ago. So I’m closing this for now to keep the review queue honest. Please reopen or open a fresh PR with real-behavior proof (a live run, logs, or a reproducible validation transcript) and it will be reviewed again. Review detailsBest possible solution: Archive this inactive branch; a reopened or replacement PR should keep the timeout private, preserve the separate readiness/body budgets, and include redacted native Node HTTP loopback or live LINE proof of both abort and successful late-readiness transfer. Do we have a high-confidence way to reproduce the issue? Yes for the source path: current main clears the only deadline after HTTP 200, then consumes the body without a deadline. A real native transport reproduction was not provided by the contributor. Is this the best way to solve the issue? No, not as submitted: the deadline belongs in the LINE download owner, but the exported test-only timeout option should be removed and native transport behavior must be shown before merge. Security review: Security review cleared: The patch changes only LINE stream-timeout handling and tests; it adds no dependency, credential, permission, or redirect-policy expansion. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against da111689594c. |
2a652b6 to
7f923be
Compare
|
Updated per review guidance:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Evidence refreshed for head @clawsweeper re-review |
7f923be to
5b8778d
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
5b8778d to
4dcd73a
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
Separate readiness and body wall-clocks so a late HTTP 200 cannot hang inbound media transfer unbounded. Drop the broken loopback harness that never wired contentBaseUrl (CI 404) and keep fake-timer regressions only. Co-authored-by: Cursor <[email protected]>
352f27e to
751fbf2
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Cursor <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Cursor <[email protected]>
|
@clawsweeper re-review |
|
ClawSweeper applied the proposed close for this PR.
|
What Problem This Solves
Fixes an issue where LINE inbound media download could hang forever after the content endpoint returned HTTP 200, when the response body kept dripping bytes slowly.
fetchLineContentWhenReadycleared its 15sAbortControllerafter headers returnedReadable.fromWeb(response.body), leaving no wall-clock bound on the Node stream consumed bysaveMediaStream— a slow-drip CDN body would keep inbound media handling alive indefinitely.Why This Change Was Made
On current
main, readiness owns a 15sAbortControllerinsidefetchLineContentWhenReadyand clears that timer as soon as headers return. After headers, only the Node stream remains — with no wall-clock — so a slow drip can keepsaveMediaStreamalive indefinitely.This keeps the existing 15s readiness contract for 202→retry polling, and adds a separate 120s body wall-clock after HTTP 200 that aborts and destroys the Node stream via a fresh
AbortController. Body budget matches Slack/Feishu inbound media totals (SLACK_MEDIA_TOTAL_TIMEOUT_MS/ Feishu120_000) so late readiness still gets a full transfer window for the default 10MB cap. LINE documentsapi-data.line.meas the large-data content endpoint where video/audio may spend time preparing before binary retrieval.The current
mainbranch already usesfetchWithRuntimeDispatcherOrMockedGlobal(custom fetch + 202 polling) for LINE content download — this was introduced in #108351. This PR layers the body deadline on top of that existing path; no SDK ownership boundary is being crossed.Non-goals: changing shared
saveMediaStream, LINE send/API surfaces, or collapsing readiness+body into one shared 15s budget.Collision check: no open PR on
extensions/line/src/download.ts.User Impact
Evidence (refreshed 2026-07-21)
Exact head:
751fbf24bd2f548af739ad6fd921536c305318a3CI fix: removed
download.deadline.loopback.test.ts— it passedcontentBaseUrlbut production never wired it, so CI hit realapi-data.line.me→ HTTP 404. Fake-timer drip + late-readiness cases indownload.test.tscover the body wall-clock invariant.Size:S after dropping the broken loopback harness.
Verification
751fbf24bd2f548af739ad6fd921536c305318a3node scripts/run-vitest.mjs extensions/line/src/download.test.ts→ 21/21 passorigin/mainRisk / Compatibility