Skip to content

fix(request): correct SSE, retry, multipart, and HEAD handling - #137

Merged
brendanjryan merged 3 commits into
tempoxyz:mainfrom
mablr:fix/mpp-request-io
Sep 9, 2026
Merged

brendanjryan merged 3 commits into
tempoxyz:mainfrom
mablr:fix/mpp-request-io

Conversation

@mablr

@mablr mablr commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Stream SSE as NDJSON incrementally, handling split UTF-8 and LF/CRLF/CR framing. Cancel upstream reads when output fails and await writes to injected streams.

Make retry delays respect the request deadline, preserve repeated multipart fields and files, and route HEAD output consistently through -o, including directory creation.

Validation: 53 request tests passed, plus typechecks, lint, formatting and changelog validation.

AI-assisted

Decode SSE into NDJSON incrementally with LF, CRLF and CR framing, preserving
UTF-8 across chunks and cancelling the response when output fails. Await writes to injected output streams.

Make retry backoff respect the request deadline, preserve repeated multipart
fields and files, and route HEAD output through the common writer so -o creates
parent directories and does not also print headers to stdout.
Comment thread src/commands/request.ts Outdated

@mattsse mattsse left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
@brendanjryan
brendanjryan merged commit 2f98203 into tempoxyz:main Sep 9, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants