We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5c5d2b commit 1cc4920Copy full SHA for 1cc4920
npm-app/src/cli.ts
@@ -1170,10 +1170,12 @@ export class CLI {
1170
const isAfterSpace = currentLine.endsWith(' @')
1171
1172
if (isAtStart || isAfterSpace) {
1173
+ const localAgentInfoPromise = getLocalAgentInfo()
1174
// Add a small delay to allow paste detection to work
- setTimeout(() => {
1175
+ setTimeout(async () => {
1176
// Check again if we're still not pasting after the delay
1177
if (!this.isPasting) {
1178
+ await localAgentInfoPromise
1179
this.displayAgentMenu()
1180
// Re-read the current line from readline to avoid stale data
1181
const updatedLine = this.pastedContent + (this.rl as any).line
0 commit comments