fix: await concurrent attachment uploads

This commit is contained in:
2026-08-24 01:54:25 +08:00
parent 1ca0249e69
commit 1fe8863e69
3 changed files with 20 additions and 9 deletions

View File

@@ -392,7 +392,10 @@ export function CodingChatPanel({
};
}
});
await Promise.all(workers);
const results = await Promise.allSettled(workers);
for (const result of results) {
if (result.status === 'rejected') throw result.reason;
}
return prepared;
}, []);