feat: approval agent config resolution and provider improvements#975
Conversation
…provider settings Approval cards (human input and location requests) now resolve the agent config from the thread's metadata instead of using a hardcoded default. This ensures AI responses use the user's selected agent and model override. Follows the action-wrapper pattern from unified_chat. Also improves provider configuration UI and schema validation.
…nfig in approval tools Use proper type for agent config in human_input and location tools, removing unsafe type assertions and fixing non-null assertion in query narrowing.
Replace the static read-only model list with an interactive multi-select that lets users add and remove supported models from available providers, scoped to the agent's configured provider when set.
Update OpenRouter provider secrets with rotated encryption.
…s denied flash Show skeleton while abilities load so the access denied check doesn't flash before permissions are resolved. Default tab changed to "connected" and tab order swapped to match priority.
…tions The internal mutations called from actions used ctx.auth.getUserIdentity() which returns null in Convex internalMutation context, causing all approval submissions to fail. Additionally, the action layer lacked organization membership verification, allowing cross-org authorization bypass. - Pass respondedBy/approvedBy as explicit args from action to mutation - Add verifyOrganizationMembership check in both approval actions - Remove deprecated public mutations (dead code per AGENTS.md) - Deduplicate getApprovalContext query into approvals/internal_queries - Extract shared DEFAULT_AGENT_CONFIG and return validator - Add console.warn logging to catch blocks (no-empty-catch rule) - Memoize modelId in approval card components - Fix fragile JSON.stringify isDirty check with explicit field comparison - Remove 6 unused i18n keys from en.json
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
Stack component only accepts integer gap values (0-12). Change 0.5 to 1 to fix TS2322 type error caught by CI.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR refactors default model selection from per-model Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
Test plan
Summary by CodeRabbit
Release Notes
New Features
Improvements