fix(web): revoke confirm and expiry display for MCP/agent tokens - #468
Conversation
- McpTokensPanel: add !confirm() revoke guard matching agent pattern - Show explicit Expires date in MCP + agent token rows (Created · Expires · Last used) - Tests: confirm accept calls revoke, cancel skips revoke
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change adds expiration dates to agent and MCP token metadata. MCP token revocation now requires confirmation, with tests covering accepted and cancelled confirmations. ChangesToken management
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change adds token expiry displays and confirmation before MCP token revocation, with no unresolved merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
apps/web/src/components/ConnectionSelector.tsxESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. apps/web/src/components/pages/settings/McpTokensPanel.test.tsxESLint skipped: the matched ESLint configuration already failed (missing-dependency). apps/web/src/components/pages/settings/McpTokensPanel.tsxESLint skipped: the matched ESLint configuration already failed (missing-dependency). 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 |
KIvanow
left a comment
There was a problem hiding this comment.
LGTM. Confirmed the expiresAt render is type-safe (non-nullable number on the shared TokenListItem) and ran the suite locally: all 15 tests pass including the two new confirm-accept/cancel cases. Nice consistency fix.
Summary
Aligns MCP Tokens (
Settings → MCP Tokens) with agent tokens (Add Connection → Via Agent): same!confirm()revoke guard and explicitExpires <date>in both token lists.Changes
Checklist
roborev review --branchor/roborev-review-branchin Claude Code (internal)Summary by CodeRabbit
New Features
Bug Fixes