Repository navigation
feat: improve request diagnostics and preserve upstream HTTP bodies - #524
Merged
Merged
Conversation
Translated turns (anthropic-messages-via-*, openai-* via-*, gemini-*-via-*) only recorded their post-translation downstream frames in the per-request dump, so operators debugging translation defects could not see what the upstream actually sent before Floway translated it. traverseTranslation now tees the original target-protocol frames (events path) and the verbatim upstream api-error envelope (api-error path) into the dump accumulator before trip.events / trip.apiError rewrite them. Every traverseTranslation call site passes captureFromDump(ctx.dump, targetApi); native turns and api-key-opt-out turns pay nothing. DumpMetadata gains a nullable targetApi so the dashboard can render the upstream view with the target protocol's serializer (the client path names the source protocol). The upstream body spills to its own file under a resp.up side; migration 0089 adds the nullable descriptor column and rebuilds the 0066 spilled-files validate/adopt/retire triggers to cover it. The dashboard's request detail gains an 'Upstream (pre-translation) body' section mirroring the existing collected+events response-body view.
yyyr-p
force-pushed
the
codex/request-diagnostics
branch
2 times, most recently
from
September 22, 2026 20:50
19be4c7 to
875648c
Compare
yyyr-p
marked this pull request as ready for review
September 22, 2026 20:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Capture upstream HTTP request bodies and raw responses before SSE parsing, including per-exchange status, headers and completeness. Accept Chat Completions EOF without requiring
[DONE]while retaining actual stream errors.Add searchable request history, compact payload navigation, highlighted per-event blocks, and individual/batch export as JSON or separate files in a tar archive.
Based directly on
Menci/Floway:main; only request-diagnostics changes are included. The upstream-body migration is0084.Validation: full
pnpm run verifypassed, including 6,144 tests, installer checks and production build. Desktop/mobile flows were manually checked with large payloads, malformed SSE, multiple attempts, pagination and a 47-event stream.