Skip to content

Conversation

@rabanspiegel
Copy link
Contributor

@rabanspiegel rabanspiegel commented Jan 25, 2026

Changes

  • Add AgentDropdown component for simple single-agent selection (no multi-run selector, no tooltips)
  • Use agentConfig order for consistent agent listing (Claude Code first)
  • Respect user's default agent setting when pre-selecting
  • Change label from 'Select AI Agent' to 'Agent' for consistency with TaskModal
  • Change button from 'Create Chat' to 'Create' for consistency with TaskModal
  • Fix MultiAgentDropdown to preserve agentConfig order instead of custom sorting

Note

Streamlines chat creation and enforces consistent agent ordering.

  • Introduces AgentDropdown for single-agent selection with logos and disabled states for agents already in use
  • Refactors CreateChatModal to use AgentDropdown, preselects from settings defaultProvider or first available per agentConfig order, validates availability, and updates label/button text
  • Updates ChatInterface to stop passing removed props to CreateChatModal
  • Fixes MultiAgentDropdown to use agentConfig order (removes custom sort)

Written by Cursor Bugbot for commit 2797ab3. This will update automatically on new commits. Configure here.

- Add AgentDropdown component for simple single-agent selection
- Use agentConfig order for consistent agent listing (Claude first)
- Respect user's default agent setting when pre-selecting
- Change label from 'Select AI Agent' to 'Agent' for consistency
- Change button from 'Create Chat' to 'Create' for consistency
- Remove unused props (installedProviders, currentProvider)
- Fix MultiAgentDropdown to preserve agentConfig order
@vercel
Copy link

vercel bot commented Jan 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 25, 2026 2:30am

Request Review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

});
}
}, [isOpen, currentProvider, installedProviders, usedAgents]);
}, [isOpen, usedAgents]);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing cleanup for async effect causes potential race condition

Low Severity

The useEffect that loads settings via window.electronAPI.getSettings() lacks a cleanup function and cancel guard. TaskModal uses the correct pattern with let cancel = false and a cleanup that sets cancel = true, checking if (cancel) return before state updates. Without this, if the modal closes/reopens quickly or usedAgents changes while the promise is pending, stale callbacks can update state incorrectly, causing race conditions where the wrong agent gets selected.

Fix in Cursor Fix in Web

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.

2 participants