mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: remove unnecessary setImmediate delay in streaming loop to improve response speed
- Removed setImmediate call that was adding artificial delay in the streaming response loop - This was causing slower response times compared to Claude CLI - The async/await pattern already provides natural yielding without blocking Fixes #8056
This commit is contained in:
parent
dcc6db00c7
commit
246978ed20
1 changed files with 2 additions and 2 deletions
|
|
@ -2312,8 +2312,8 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
|
|||
includeFileDetails: false, // Subsequent iterations don't need file details
|
||||
})
|
||||
|
||||
// Add periodic yielding to prevent blocking
|
||||
await new Promise((resolve) => setImmediate(resolve))
|
||||
// Removed setImmediate delay to improve streaming response speed
|
||||
// The async/await pattern already provides natural yielding
|
||||
}
|
||||
// Continue to next iteration instead of setting didEndLoop from recursive call
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue