mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: flush pending tool results before condensing context (#10379)
This commit is contained in:
parent
6ba793137d
commit
ca8fd5c867
1 changed files with 4 additions and 0 deletions
|
|
@ -1424,6 +1424,10 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
|
|||
}
|
||||
|
||||
public async condenseContext(): Promise<void> {
|
||||
// CRITICAL: Flush any pending tool results before condensing
|
||||
// to ensure tool_use/tool_result pairs are complete in history
|
||||
await this.flushPendingToolResultsToHistory()
|
||||
|
||||
const systemPrompt = await this.getSystemPrompt()
|
||||
|
||||
// Get condensing configuration
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue