Skip to content

fix: add warning for temporarily unavailable Anthropic OAuth authentication#13331

Merged
EurFelux merged 1 commit intomainfrom
fix/anthropic-oauth
Mar 10, 2026
Merged

fix: add warning for temporarily unavailable Anthropic OAuth authentication#13331
EurFelux merged 1 commit intomainfrom
fix/anthropic-oauth

Conversation

@EurFelux
Copy link
Copy Markdown
Collaborator

@EurFelux EurFelux commented Mar 9, 2026

What this PR does

Before this PR:
Users selecting Anthropic OAuth authentication had no indication that the method is currently unavailable.

After this PR:
A warning alert is displayed when users select OAuth authentication for Anthropic, informing them that OAuth is temporarily suspended and they should use an API key instead.

Why we need it and why it was done in this way

Anthropic has temporarily disabled the use of Claude via OAuth. Users attempting to authenticate via OAuth would encounter failures without understanding why. A visible warning alert is the simplest and most direct way to communicate this to users.

The following tradeoffs were made:

  • The OAuth flow is not disabled programmatically (buttons still work) — only a warning is shown, since the suspension may be temporary.

The following alternatives were considered:

  • Disabling the "Start authorization" button entirely — rejected because the suspension status is uncertain and may change.

Breaking changes

None.

Special notes for your reviewer

Minimal change: one warning Alert added to AnthropicSettings.tsx + one i18n key (oauth_disabled_warning) added across all locales.

Checklist

  • PR: The PR description is expressive enough and will help future contributors
  • Code: Write code that humans can understand and Keep it simple
  • Refactor: You have left the code cleaner than you found it (Boy Scout Rule)
  • Upgrade: Impact of this change on upgrade flows was considered and addressed if required
  • Documentation: A user-guide update was considered and is not required.
  • Self-review: I have reviewed my own code before requesting review from others

Release note

Added a warning message when selecting Anthropic OAuth authentication, indicating that this method is temporarily unavailable due to Anthropic suspending OAuth access to Claude.

@GeorgeDong32

This comment was marked as duplicate.

@GeorgeDong32
Copy link
Copy Markdown
Collaborator

GeorgeDong32 commented Mar 10, 2026

Note

This comment was translated by Claude.

Code Review Summary

Overall Assessment: Code quality is good and meets project standards ✅

Overview of Changes

  • Added warning Alert to AnthropicSettings.tsx to inform users that OAuth is temporarily unavailable
  • i18n translations have been fully added to all 11 locale files

Strengths

  1. Minimal changes, clean implementation
  2. Complete i18n standardization
  3. Alert component usage consistent with existing code style

Suggestions (Non-blocking)

The current implementation displays the warning regardless of authentication status. It is recommended to consider conditional display, showing the warning only to unauthenticated users (authStatus === NOT_STARTED or AUTHENTICATING), as authenticated users may not need to see this prompt.

Review Results

  • ✅ No security vulnerabilities
  • ✅ No performance impact
  • ✅ Good code quality

Conclusion: Ready to merge


Original Content

代码审查总结

整体评价: 代码质量良好,符合项目规范 ✅

变更概述

  • AnthropicSettings.tsx 添加警告 Alert,告知用户 OAuth 暂时不可用
  • i18n 翻译已完整添加至所有 11 个 locale 文件

优点

  1. 变更最小化,实现简洁
  2. i18n 规范完整
  3. Alert 组件使用与现有代码风格一致

建议 (非阻塞)

当前实现无论认证状态如何都会显示警告。建议考虑条件显示,仅对未认证用户 (authStatus === NOT_STARTED 或 AUTHENTICATING) 显示警告,因为已认证用户可能不需要看到此提示。

审查结果

  • ✅ 无安全漏洞
  • ✅ 无性能影响
  • ✅ 代码质量良好

结论: 可以合并

@EurFelux EurFelux merged commit 4497fd5 into main Mar 10, 2026
11 checks passed
@EurFelux EurFelux deleted the fix/anthropic-oauth branch March 10, 2026 04:48
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.

3 participants