Skip to content

fix: Improve CreateChatModal with proper agent ordering and simpler UI#690

Merged
rabanspiegel merged 5 commits intomainfrom
emdash/kimi-secondary-8a8
Jan 27, 2026
Merged

fix: Improve CreateChatModal with proper agent ordering and simpler UI#690
rabanspiegel merged 5 commits intomainfrom
emdash/kimi-secondary-8a8

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

Introduces a simpler single-agent selection flow and standardizes agent ordering across the UI.

  • New AgentDropdown lists only installed agents in agentConfig order and disables agents already in use
  • Refactors CreateChatModal to single-agent selection (loads default from settings, validates availability, updated label/button text)
  • ChatInterface now derives installedAgents from agentStatuses via useMemo and passes to CreateChatModal (removes local state/effect)
  • MultiAgentDropdown preserves agentConfig order and drops defaultAgent sorting behavior/prop
  • TaskModal simplifies agent selection by removing defaultAgentFromSettings and using MultiAgentDropdown as-is

Written by Cursor Bugbot for commit 8c6a3a0. 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 26, 2026 11:37pm

Request Review

Add cancel guard and cleanup function to the useEffect that loads
settings via getSettings(). This prevents race conditions when the
modal closes/reopens quickly or usedAgents changes while the promise
is pending.

Follows the same pattern used in TaskModal.tsx.
- Clear error state when async settings load selects valid agent
- Remove dead installedAgents state and useEffect from ChatInterface
- Remove unused defaultAgent prop from MultiAgentDropdown
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.

Pass installedAgents from ChatInterface to CreateChatModal and
AgentDropdown to filter agent selection to only installed agents.
@rabanspiegel rabanspiegel merged commit d6c10e8 into main Jan 27, 2026
4 checks passed
@rabanspiegel rabanspiegel deleted the emdash/kimi-secondary-8a8 branch January 27, 2026 01:12
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.

1 participant