Skip to content

test(coderd/aibridged): cover nil-body proxy passthrough - #30401

Closed
pawbana wants to merge 5 commits into
mainfrom
pawel/issue-29726-passthrough-nil-body
Closed

pawbana wants to merge 5 commits into
mainfrom
pawel/issue-29726-passthrough-nil-body

Conversation

@pawbana

@pawbana pawbana commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Cover an in-memory nil-body request reaching the existing Copilot passthrough route as an empty upstream body. This test is independent of bridged forwarding.

Part of the functional split of #30226. Base: pawel/issue-29726-validation.

Split plan and ownership decisions

The approved split moves the passthrough-only regression out of the forwarding PR. This branch contains just the test and required imports, with no forwarding or validation changes.

Forwarding stack: request replay → wire forwarding and transport lifecycle → key-pool failover → terminal response handling (#30226) → recording and activation (#29726) → disclosures (#29727). The passthrough regression is an independent sibling. Each branch contains one commit over its base.

Generated by Coder Agents on behalf of @pawbana.

Restore rejection logs for WebSocket upgrades, invalid agent firewall
headers, and oversized bodies, and log the actor, recorder, and
credential rejections without credential values. Document that a nil
checkRequest result means the response is written.

Assert exact response bodies and logs per rejection, cover malformed
firewall session IDs with a sequence number, assert the recorded
provider type, and cover rejection and shutdown through the public
router.
Assert both keyless and BYOK Bedrock bridged requests return 404 without
reaching upstream, and clarify that only Bedrock skips preflight.
Base automatically changed from pawel/issue-29726-validation to main October 7, 2026 16:51
@github-actions github-actions Bot added the stale This issue is like stale bread. label Nov 11, 2026
@github-actions github-actions Bot closed this Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale This issue is like stale bread.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant