fix(coding-agent): wait for retried runs to settle
This commit is contained in:
@@ -2547,9 +2547,12 @@ export class AgentSession {
|
|||||||
* Returns immediately if no retry is in progress.
|
* Returns immediately if no retry is in progress.
|
||||||
*/
|
*/
|
||||||
private async waitForRetry(): Promise<void> {
|
private async waitForRetry(): Promise<void> {
|
||||||
if (this._retryPromise) {
|
if (!this._retryPromise) {
|
||||||
await this._retryPromise;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await this._retryPromise;
|
||||||
|
await this.agent.waitForIdle();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Whether auto-retry is currently in progress */
|
/** Whether auto-retry is currently in progress */
|
||||||
|
|||||||
Reference in New Issue
Block a user