Skip to content

Commit 1cc4920

Browse files
committed
Reload agents for '@'
1 parent e5c5d2b commit 1cc4920

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

npm-app/src/cli.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,10 +1170,12 @@ export class CLI {
11701170
const isAfterSpace = currentLine.endsWith(' @')
11711171

11721172
if (isAtStart || isAfterSpace) {
1173+
const localAgentInfoPromise = getLocalAgentInfo()
11731174
// Add a small delay to allow paste detection to work
1174-
setTimeout(() => {
1175+
setTimeout(async () => {
11751176
// Check again if we're still not pasting after the delay
11761177
if (!this.isPasting) {
1178+
await localAgentInfoPromise
11771179
this.displayAgentMenu()
11781180
// Re-read the current line from readline to avoid stale data
11791181
const updatedLine = this.pastedContent + (this.rl as any).line

0 commit comments

Comments
 (0)