Skip to content

Commit ed0abcd

Browse files
hannesrudolphMerge Resolver
authored andcommitted
fix: revert order of operations in startTask to fix integration test timeout
The change in order of operations (calling say() before postStateToWebview()) was causing the XML content file test to timeout. Reverting to the original order fixes the issue.
1 parent c8a4b50 commit ed0abcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/task/Task.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,9 +1086,9 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
10861086
// The todo list is already set in the constructor if initialTodos were provided
10871087
// No need to add any messages - the todoList property is already set
10881088

1089-
await this.say("text", task, images)
1090-
10911089
await this.providerRef.deref()?.postStateToWebview()
1090+
1091+
await this.say("text", task, images)
10921092
this.isInitialized = true
10931093

10941094
let imageBlocks: Anthropic.ImageBlockParam[] = formatResponse.imageBlocks(images)

0 commit comments

Comments
 (0)