mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Wait for active terminals to cool down before sending api request
This commit is contained in:
@@ -1783,6 +1783,13 @@ ${
|
||||
|
||||
const busyTerminals = this.terminalManager.getTerminals(true)
|
||||
if (busyTerminals.length > 0) {
|
||||
// wait for terminals to cool down
|
||||
await delay(500) // delay after saving file
|
||||
await pWaitFor(() => busyTerminals.every((t) => !this.terminalManager.isProcessHot(t.id)), {
|
||||
interval: 100,
|
||||
timeout: 7_000,
|
||||
}).catch(() => {})
|
||||
// terminals are cool, let's retrieve their output
|
||||
details += "\n\n# Active Terminals"
|
||||
for (const busyTerminal of busyTerminals) {
|
||||
details += `\n## ${busyTerminal.lastCommand}`
|
||||
|
||||
Reference in New Issue
Block a user