-
Notifications
You must be signed in to change notification settings - Fork 13.3k
anthropic legal requests #18186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+18
−193
Merged
anthropic legal requests #18186
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
166 changes: 0 additions & 166 deletions
166
packages/opencode/src/session/prompt/anthropic-20250930.txt
This file was deleted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User-Agentheader for third-party providersThe original logic sent
User-Agent: opencode/${Installation.VERSION}to all providers exceptopencode-prefixed andanthropicones. The refactored code only adds thex-opencode-*headers for opencode providers and adds nothing for everyone else — meaning providers likeopenai,google,azure,openrouter, etc. silently lose theUser-Agentheader.This is likely an unintended side-effect of removing the
anthropic-specific exclusion. The ternary was restructured into a simple&&, dropping the middle branch entirely.If intentional, this should be documented. If unintentional, consider restoring it: