Skip to content

Commit 498974a

Browse files
committed
fix(task): correct indentation in maybeWaitForProviderRateLimit method
1 parent 66d8cbd commit 498974a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/core/task/Task.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3685,16 +3685,16 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
36853685
)
36863686

36873687
// Only show the countdown UX on the first attempt. Retry flows have their own delay messaging.
3688-
if (rateLimitDelay > 0 && retryAttempt === 0) {
3689-
for (let i = rateLimitDelay; i > 0; i--) {
3690-
// Send structured JSON data for i18n-safe transport
3691-
const delayMessage = JSON.stringify({ seconds: i })
3692-
await this.say("api_req_rate_limit_wait", delayMessage, undefined, true)
3693-
await delay(1000)
3694-
}
3695-
// Finalize the partial message so the UI doesn't keep rendering an in-progress spinner.
3696-
await this.say("api_req_rate_limit_wait", undefined, undefined, false)
3688+
if (rateLimitDelay > 0 && retryAttempt === 0) {
3689+
for (let i = rateLimitDelay; i > 0; i--) {
3690+
// Send structured JSON data for i18n-safe transport
3691+
const delayMessage = JSON.stringify({ seconds: i })
3692+
await this.say("api_req_rate_limit_wait", delayMessage, undefined, true)
3693+
await delay(1000)
36973694
}
3695+
// Finalize the partial message so the UI doesn't keep rendering an in-progress spinner.
3696+
await this.say("api_req_rate_limit_wait", undefined, undefined, false)
3697+
}
36983698
}
36993699

37003700
public async *attemptApiRequest(

0 commit comments

Comments
 (0)