Skip to content

[codex] cover retry behavior for agent pack proxy routes#693

Merged
madara88645 merged 1 commit into
mainfrom
codex/proxy-retry-agent-packs
May 31, 2026
Merged

[codex] cover retry behavior for agent pack proxy routes#693
madara88645 merged 1 commit into
mainfrom
codex/proxy-retry-agent-packs

Conversation

@madara88645
Copy link
Copy Markdown
Owner

What changed

  • added retry contract coverage for /agent-packs/claude
  • added retry contract coverage for /agent-packs/claude/download
  • added a backend proxy test that proves binary downloads still stream after a transient network failure

Why this changed

These routes were recently opted into retry-on-wakeup behavior, but the regression tests did not cover the agent pack create/download flows. This PR locks that behavior in so a later refactor does not quietly remove it.

Product impact

Users are less likely to see flaky first-load failures on agent pack create and download flows, and we now have tests that catch regressions before they ship.

Verification

  • cd web && npx vitest run app/proxy-routes.test.ts lib/server/backendProxy.test.ts
  • cd web && npm run test:contracts

@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
compiler Ready Ready Preview, Comment May 31, 2026 9:04am

@madara88645 madara88645 marked this pull request as ready for review May 31, 2026 10:11
Copilot AI review requested due to automatic review settings May 31, 2026 10:11
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

PR risk assessment

Risk level: Very Low

Decision: Approved (no additional reviewers required)

Evidence (from diff only)

Signal Finding
Files changed 2 — both *.test.ts
Production code None
Lines +48 (test assertions only)
Infra / auth / schema None

What changed

  1. web/app/proxy-routes.test.ts — Adds parameterized cases so /agent-packs/claude and /agent-packs/claude/download proxy wiring is covered like other backend routes.
  2. web/lib/server/backendProxy.test.ts — Adds a test that network errors on binary download paths are retried, the response stays streaming (arrayBuffer not called), and x-promptc-proxy-attempts reflects the retry count.

Why Very Low

  • Test-only diff with no runtime behavior change
  • Narrow scope: proxy route wiring + existing retry helper behavior
  • Low blast radius; easy to reason about correctness

Reviewers

  • No domain reviewers assigned by this automation (Very Low threshold).
  • GitHub Copilot review already requested (1 bot reviewer; under the 2-reviewer cap).

CODEOWNERS

No CODEOWNERS file in repo; no blocking owner review detected.


Slack summary

PR #693 — [codex] cover retry behavior for agent pack proxy routes
Repo: madara88645/Compiler
Branch: codex/proxy-retry-agent-packs → main
Risk: Very Low
Action: Approved (automation)
Reviewers added: None
Notes: Test-only (+48 lines). Covers agent-pack proxy routes and binary-download retry/streaming behavior. No production code changes.
URL: https://github.com/madara88645/Compiler/pull/693
Open in Web View Automation 

Sent by Cursor Automation: Assign PR reviewers

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@madara88645 madara88645 merged commit 6b78e68 into main May 31, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants