Fixing at command race condition (#6663)

This commit is contained in:
Victor May
2025-08-20 15:51:31 -04:00
committed by GitHub
parent fff44d3215
commit 42e30bbe8b
4 changed files with 139 additions and 36 deletions
@@ -137,12 +137,9 @@ export async function handleAtCommand({
);
if (atPathCommandParts.length === 0) {
addItem({ type: 'user', text: query }, userMessageTimestamp);
return { processedQuery: [{ text: query }], shouldProceed: true };
}
addItem({ type: 'user', text: query }, userMessageTimestamp);
// Get centralized file discovery service
const fileDiscovery = config.getFileService();