File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments