File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -584,7 +584,7 @@ export const Chat = ({
584584 if ( index < agentMatches . length ) {
585585 const selected = agentMatches [ index ]
586586 if ( ! selected ) return
587- replacement = `@${ selected . displayName } `
587+ replacement = `@${ selected . id } `
588588 } else {
589589 const fileIndex = index - agentMatches . length
590590 const selectedFile = fileMatches [ fileIndex ]
@@ -1025,7 +1025,7 @@ export const Chat = ({
10251025 if ( index < agentMatches . length ) {
10261026 const selected = agentMatches [ index ]
10271027 if ( ! selected ) return false
1028- replacement = `@${ selected . displayName } `
1028+ replacement = `@${ selected . id } `
10291029 } else {
10301030 const fileIndex = index - agentMatches . length
10311031 const selectedFile = fileMatches [ fileIndex ]
@@ -1057,7 +1057,7 @@ export const Chat = ({
10571057 if ( index < agentMatches . length ) {
10581058 const selected = agentMatches . length > 0 ? ( agentMatches [ index ] || agentMatches [ 0 ] ) : undefined
10591059 if ( ! selected ) return
1060- replacement = `@${ selected . displayName } `
1060+ replacement = `@${ selected . id } `
10611061 } else {
10621062 const fileIndex = index - agentMatches . length
10631063 const selectedFile = fileMatches . length > 0 ? ( fileMatches [ fileIndex ] || fileMatches [ 0 ] ) : undefined
Original file line number Diff line number Diff line change @@ -740,10 +740,10 @@ export const useSuggestionEngine = ({
740740 const agentSuggestionItems = useMemo < SuggestionItem [ ] > ( ( ) => {
741741 return agentMatches . map ( ( agent ) => ( {
742742 id : agent . id ,
743- label : agent . displayName ,
744- labelHighlightIndices : agent . nameHighlightIndices ,
745- description : agent . id ,
746- descriptionHighlightIndices : agent . idHighlightIndices ,
743+ label : agent . id ,
744+ labelHighlightIndices : agent . idHighlightIndices ,
745+ description : '' ,
746+ descriptionHighlightIndices : null ,
747747 } ) )
748748 } , [ agentMatches ] )
749749
You can’t perform that action at this time.
0 commit comments