Move agent Delegated mode toggle to the Advanced tab - #4318
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughDelegated mode is now controlled in the agent’s Advanced settings. Enabling it updates OAuth2 grants and PKCE requirements, while Flows and Tokens lock notices and related tests now direct users to the Advanced tab. ChangesDelegated mode settings flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant AdvancedSettings
participant OAuth2Config
participant FlowSettings
User->>AdvancedSettings: Toggle Delegated mode
AdvancedSettings->>OAuth2Config: Update grant types and PKCE
OAuth2Config-->>FlowSettings: Grant configuration changes
FlowSettings-->>User: Unlock or lock flow settings
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. 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. Comment |
|
@coderabbitai help |
ChatThere are 3 ways to chat with CodeRabbit:
CodeRabbit commands
Other keywords and placeholders
Status, support, documentation and community
|
|
@coderabbitai full review |
✅ Action performedFull review finished. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
410fc24 to
ef7c0a8
Compare
Purpose
Moves the agent "Delegated mode" toggle from the Flows tab to the top of the Advanced tab in the agent edit view, and updates the related info messages so they point users to the new location.
Approach
The toggle only flips the
authorization_codegrant on/off (adding it plus deriving PKCE when enabled, and dropping the delegated-only grants when disabled). InEditAdvancedSettingsthis reuses the existinghandleOAuth2ConfigChangehelper to merge the grant changes into the agent'sinboundAuthConfig, so no logic is duplicated; the previous inline mapping inEditFlowsSettingswas removed.EditFlowsSettingsstill computesisUnlockedto drive the frozen/read-only state of the flow sections and the lock notice, but no longer owns the toggle. The three info strings were moved to reference the Advanced tab, and the toggle's i18n key was moved under the Advanced tab group.Summary by CodeRabbit
New Features
Documentation