Dashboardopencode-loreForeground cancellation and bounded hos…

Foreground cancellation and bounded hostile I/O cleanup

Category: architecture
Confidence: 1.00
ID: 01a0a06d-06ee-7b0c-9816-c6ff4d237811
Project ID: 6f4be9ff-ed84-4cca-a9e7-732a0b0b8677
Cross-project: No
Recalled in other projects: 1
Source session: 0L5qwyPKP9qTDFf4t
Created: 2026-08-21 22:25:39
Updated: 2026-09-14 14:58:14

Cross-Project Recalls

ProjectHitsLast recalled
opencode 1 9d ago

Content

Race recall, follow-up setup, provider work, and every body read against the foreground abort/deadline; byte caps cannot bound a reader that never settles. On cancellation, return promptly and asynchronously roll back late results or cancel/release late readers without awaiting hostile cleanup. readForegroundBody must bound non-OK diagnostic reads by timeout and abort, always release the reader, sanitize content, preserve status, and clamp far-future HTTP-date Retry-After to 300 seconds. Suppress cleanup failures and test stalled bodies, handoff races, late results, and non-settling cleanup.

Move to: