Skip to content

feat(types): allow custom beta header values#850

Open
MukundaKatta wants to merge 2 commits intoanthropics:mainfrom
MukundaKatta:codex/allow-custom-beta-headers
Open

feat(types): allow custom beta header values#850
MukundaKatta wants to merge 2 commits intoanthropics:mainfrom
MukundaKatta:codex/allow-custom-beta-headers

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • loosen SdkBeta so callers can pass newly released anthropic-beta header values without waiting for an SDK release
  • keep the existing known beta literal discoverable while allowing arbitrary strings
  • add a transport test that verifies custom beta values still flow through to the CLI --betas flag

Testing

  • python3 -m py_compile src/claude_agent_sdk/types.py tests/test_transport.py
  • python3 -m pytest tests/test_transport.py -k custom_betas (fails in this environment because the test import path is missing the mcp dependency)

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.

1 participant