fix(coding-agent): wait for retried runs to settle

This commit is contained in:
Mario Zechner
2026-03-30 15:51:59 +02:00
parent 9022a5b5ea
commit 21863d4ec7

View File

@@ -2547,9 +2547,12 @@ export class AgentSession {
* Returns immediately if no retry is in progress.
*/
private async waitForRetry(): Promise<void> {
if (this._retryPromise) {
await this._retryPromise;
if (!this._retryPromise) {
return;
}
await this._retryPromise;
await this.agent.waitForIdle();
}
/** Whether auto-retry is currently in progress */