Skip to content

Commit 3758b6c

Browse files
committed
Reference @agentS just by their id
1 parent 38530aa commit 3758b6c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cli/src/chat.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

cli/src/hooks/use-suggestion-engine.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)