Revert "feat: add Claude Code channel support with OAuth integration"#1481
Conversation
WalkthroughThis change removes all support for the "Claude Code" channel type (type 53) and its OAuth integration from both backend and frontend. It deletes related constants, adaptors, OAuth controllers and services, token refresh logic, UI handling, and all special-case logic for Claude Code, reverting affected areas to generic channel/channel-type handling. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Web UI
participant Backend API
participant Claude Code OAuth Service
Note over User,Claude Code OAuth Service: Previous flow (now removed)
User->>Web UI: Click "Authorize Claude Code"
Web UI->>Backend API: Request OAuth URL
Backend API->>Claude Code OAuth Service: Generate OAuth URL
Claude Code OAuth Service-->>Backend API: Return URL
Backend API-->>Web UI: Send URL
Web UI-->>User: Show OAuth dialog
User->>Web UI: Enter authorization code
Web UI->>Backend API: Exchange code for token
Backend API->>Claude Code OAuth Service: Exchange code
Claude Code OAuth Service-->>Backend API: Return token
Backend API-->>Web UI: Token stored, channel updated
Note over User,Web UI: All above steps and UI removed
Estimated code review effort🎯 4 (Complex) | ⏱️ ~40 minutes Possibly related PRs
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (17)
💤 Files with no reviewable changes (16)
🔇 Additional comments (3)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Hi folks — I’m a bit confused about why this feature was reverted, and I’m not sure how I’m supposed to use/configure this channel in the current design. From what I can tell, this revert removes the dedicated “Claude Code” channel (type 53) and its associated OAuth/token refresh + frontend special-case config, and returns to a more “all channels are treated the same” approach. I’m currently blocked on two things:
My end goal is to make the same requests work reliably without relying on the Claude Code–specific channel. Any guidance on the recommended config for the current version (even a short example or link to docs) would be hugely appreciated. Thanks! 🙏 ===== 大家好——我有点不太理解这个功能为什么会被 revert(回滚),也不清楚在当前的设计下应该如何使用/配置这个渠道。 就我看到的情况,这次 revert 移除了专门的 “Claude Code” 渠道(type 53),以及它相关的 OAuth / token 刷新 + 前端的特殊配置逻辑,整体回到了更偏向“所有 channel 一视同仁”的通用实现方式。 我现在主要被两件事卡住了:
我的目标是:在不依赖 Claude Code 专用 channel 的前提下,让同样的请求能够稳定工作。希望能给一个当前版本推荐配置的指引(哪怕是简短示例或相关文档链接也行)。非常感谢!🙏 |
…/claude-code Revert "feat: add Claude Code channel support with OAuth integration"
…g-body-limit fix(ops): 将错误日志请求体存储限制从 10KB 提升至 256KB
Reverts #1445
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Chores
Documentation