@@ -6,6 +6,7 @@ import {addErrorMessage, addLoadingMessage} from 'sentry/actionCreators/indicato
66import { Alert } from 'sentry/components/core/alert' ;
77import { Button } from 'sentry/components/core/button' ;
88import { ButtonBar } from 'sentry/components/core/button/buttonBar' ;
9+ import { Flex } from 'sentry/components/core/layout' ;
910import { TextArea } from 'sentry/components/core/textarea' ;
1011import { DropdownMenu } from 'sentry/components/dropdownMenu' ;
1112import { AutofixHighlightWrapper } from 'sentry/components/events/autofix/autofixHighlightWrapper' ;
@@ -20,8 +21,10 @@ import {
2021 useLaunchCodingAgent ,
2122} from 'sentry/components/events/autofix/useAutofix' ;
2223import { formatRootCauseWithEvent } from 'sentry/components/events/autofix/utils' ;
24+ import LoadingIndicator from 'sentry/components/loadingIndicator' ;
2325import { IconChat , IconChevron , IconCopy , IconFocus } from 'sentry/icons' ;
2426import { t } from 'sentry/locale' ;
27+ import { PluginIcon } from 'sentry/plugins/components/pluginIcon' ;
2528import { space } from 'sentry/styles/space' ;
2629import type { Event } from 'sentry/types/event' ;
2730import { trackAnalytics } from 'sentry/utils/analytics' ;
@@ -311,6 +314,9 @@ function AutofixRootCauseDisplay({
311314 return ;
312315 }
313316
317+ // Show immediate loading toast
318+ addLoadingMessage ( t ( 'Launching %s...' , cursorIntegration . name ) ) ;
319+
314320 launchCodingAgent ( {
315321 integrationId : cursorIntegration . id ,
316322 agentName : cursorIntegration . name ,
@@ -451,7 +457,12 @@ function AutofixRootCauseDisplay({
451457 items = { [
452458 {
453459 key : 'cursor-agent' ,
454- label : t ( 'Send to Cursor Background Agent' ) ,
460+ label : (
461+ < Flex gap = "md" align = "center" >
462+ < PluginIcon pluginId = "cursor" size = { 20 } />
463+ < div > { t ( 'Send to Cursor Background Agent' ) } </ div >
464+ </ Flex >
465+ ) ,
455466 onAction : handleLaunchCodingAgent ,
456467 disabled : isLoadingAgents || isLaunchingAgent ,
457468 } ,
@@ -464,7 +475,13 @@ function AutofixRootCauseDisplay({
464475 busy = { isLaunchingAgent }
465476 disabled = { isLoadingAgents }
466477 aria-label = { t ( 'More solution options' ) }
467- icon = { < IconChevron direction = { isOpen ? 'up' : 'down' } size = "xs" /> }
478+ icon = {
479+ isLaunchingAgent ? (
480+ < LoadingIndicator size = { 12 } />
481+ ) : (
482+ < IconChevron direction = { isOpen ? 'up' : 'down' } size = "xs" />
483+ )
484+ }
468485 />
469486 ) }
470487 />
0 commit comments