chore: remove Anthropic context-1m beta header#3103
Conversation
Stop sending anthropic-beta: context-1m-2025-08-07; getAiHeaders is a no-op for now. Made-with: Cursor
There was a problem hiding this comment.
Pull request overview
This PR removes the Anthropic anthropic-beta: context-1m-2025-08-07 header from outgoing Anthropic API requests, leaving the getAiHeaders hook in place for future provider-specific headers.
Changes:
- Removed the Anthropic-specific
anthropic-betarequest header. - Updated
getAiHeadersdocs and implementation to currently returnundefined(placeholder for future headers).
π‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
π Dyadbot Code Review SummaryVerdict: β YES - Ready to merge Reviewed by 3 independent agents: Correctness Expert, Code Health Expert, UX Wizard. Issues SummaryNo HIGH or MEDIUM issues found. π’ Low Priority Notes (1 item)
π« Dropped False Positives (0 items)None. Generated by Dyadbot multi-agent code review |
There was a problem hiding this comment.
Code Review
This pull request refactors the getAiHeaders function in src/ipc/utils/provider_options.ts to remove the Anthropic-specific beta header logic, effectively turning it into a placeholder that returns undefined. I have no feedback to provide.
π Playwright Test Resultsβ Some tests failed
Summary: 807 passed, 8 failed, 9 flaky, 256 skipped Failed Testsπ macOS
πͺ Windows
π Re-run Failing Tests (macOS)Copy and paste to re-run all failing spec files locally: npm run e2e \
e2e-tests/queued_message.spec.ts \
e2e-tests/visual_editing.spec.ts
|
Summary
anthropic-beta: context-1m-2025-08-07on Anthropic API requests.getAiHeadersremains for future provider-specific headers but currently returnsundefined.Test plan
npm run fmt && npm run lint:fix && npm run tsnpm test(952 tests)#skip-bugbot
π€ Generated with Claude Code
Made with Cursor