Skip to content

[docs] Document Anthropic deprecated beta header retry handling#3667

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/anthropic-beta-retry-handling-3dfdecf772e3d83f
Open

[docs] Document Anthropic deprecated beta header retry handling#3667
github-actions[bot] wants to merge 1 commit into
mainfrom
docs/anthropic-beta-retry-handling-3dfdecf772e3d83f

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Documentation Sync - Anthropic Beta Header Retry Handling

This PR synchronizes documentation with code changes from commit 881da1d by documenting the automatic retry behavior for deprecated Anthropic anthropic-beta header values.

Changes Made

  • docs/api-proxy-sidecar.md: Added section documenting automatic retry and correction for deprecated anthropic-beta header values
    • Explains that the proxy detects and automatically retries requests when Anthropic rejects deprecated beta values
    • Documents the "learning" behavior where deprecated values are proactively stripped from subsequent requests
    • Clarifies that this behavior is transparent to clients and requires no code changes

Code Changes Referenced

Verification

  • Code review: Verified the retry logic in containers/api-proxy/proxy-request.js
  • Documentation consistency: Updated API proxy sidecar docs to match implementation
  • Examples: Added clear example of how the retry behavior works with multiple beta values
  • Style: Documentation uses consistent format with existing sections

This is a documentation-only change that improves clarity for users relying on the Anthropic API proxy without changing any behavior or logic.

Generated by Documentation Maintainer · ● 66.4K ·

When Anthropic API rejects a deprecated anthropic-beta header value,
the proxy automatically retries the request with the deprecated value
removed. The proxy also learns from these rejections and proactively
strips deprecated values from subsequent requests in the same run.

This behavior was implemented in commit 881da1d but was not documented.
Users should be aware that deprecated header values are automatically
corrected without requiring client-side changes.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@github-actions github-actions Bot added ai-generated documentation Improvements or additions to documentation labels May 24, 2026
@github-actions
Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation build failed for this PR. View logs.

Built from commit eefde10

@github-actions
Copy link
Copy Markdown
Contributor Author

Smoke Test Results

PR #3667 — [docs] Document Anthropic deprecated beta header retry handling

Overall Status: FAIL ⚠️

cc @github-actions[bot]

📰 BREAKING: Report filed by Smoke Copilot

@github-actions
Copy link
Copy Markdown
Contributor Author

Smoke Test Results ✅

All validation checks passed:

  • ✅ GitHub API: 2 recent PR entries confirmed
  • ✅ GitHub check: playwright_check PASS
  • ✅ File verify: smoke-test-claude-26353446492.txt exists

Status: PASS — Claude engine validation complete.

💥 [THE END] — Illustrated by Smoke Claude

@github-actions
Copy link
Copy Markdown
Contributor Author

Smoke Test: Copilot BYOK (Offline Mode)

Status: PARTIAL PASS (1 file test failed, core BYOK functionality working)

@github-actions[bot]

🔑 BYOK report filed by Smoke Copilot BYOK

@github-actions
Copy link
Copy Markdown
Contributor Author

✅ GitHub MCP: Retry Anthropic requests after deprecated anthropic-beta header rejection; Refactor agent volume assembly into focused mount modules
❌ Safe Inputs GH CLI: safeinputs-gh unavailable; queried PRs with gh fallback
✅ Playwright: title contains GitHub
❌ Tavily: MCP server exposed no callable search tool
✅ File/Bash: smoke file created and read
✅ Discussion: oracle comment posted to #3676
✅ Build: npm ci && npm run build
Overall status: FAIL

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • registry.npmjs.org

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "registry.npmjs.org"

See Network Configuration for more information.

🔮 The oracle has spoken through Smoke Codex

@github-actions
Copy link
Copy Markdown
Contributor Author

Service Connectivity Results

Redis: Connection timeout (no PONG response)
PostgreSQL pg_isready: Connection timeout (no response)
PostgreSQL SELECT: Not tested (pg_isready failed)

Overall: FAIL — Services on host.docker.internal are not reachable from AWF sandbox

🔌 Service connectivity validated by Smoke Services

@github-actions
Copy link
Copy Markdown
Contributor Author

Gemini Smoke Test Results: FAIL (MCP/Connectivity failed, File/Bash passed)

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • localhost

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "localhost"

See Network Configuration for more information.

💎 Faceted by Smoke Gemini

@github-actions
Copy link
Copy Markdown
Contributor Author

🏗️ Build Test Suite Results

Ecosystem Project Build/Install Tests Status
Bun elysia 1/1 passed ✅ PASS
Bun hono 1/1 passed ✅ PASS
C++ fmt N/A ✅ PASS
C++ json N/A ✅ PASS
Deno oak N/A 1/1 passed ✅ PASS
Deno std N/A 1/1 passed ✅ PASS
.NET hello-world N/A ✅ PASS
.NET json-parse N/A ✅ PASS
Go color all passed ✅ PASS
Go env all passed ✅ PASS
Go uuid all passed ✅ PASS
Java gson 1/1 passed ✅ PASS
Java caffeine 1/1 passed ✅ PASS
Node.js clsx all passed ✅ PASS
Node.js execa all passed ✅ PASS
Node.js p-limit all passed ✅ PASS
Rust fd 1/1 passed ✅ PASS
Rust zoxide 1/1 passed ✅ PASS

Overall: 8/8 ecosystems passed — ✅ PASS

All build and test operations completed successfully across all supported language ecosystems.

Generated by Build Test Suite for issue #3667 · ● 16.6M ·

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated build-test documentation Improvements or additions to documentation smoke-claude

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants