Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/heavy-jeans-ask.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kilo-code": patch
---

Fix bug preventing Orchestrator mode sub-tasks from reporting their results properly
4 changes: 2 additions & 2 deletions src/core/task/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
readonly taskId: string
readonly instanceId: string

readonly rootTask: Task | undefined = undefined
readonly parentTask: Task | undefined = undefined
readonly rootTask: Task | undefined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix! This correctly addresses the TypeScript initialization issue. However, consider adding a brief comment explaining why these properties don't have explicit initializers, as this subtle behavior might not be obvious to all developers:

Suggested change
readonly rootTask: Task | undefined
// Note: No explicit initializers to allow constructor assignment
readonly rootTask: Task | undefined
readonly parentTask: Task | undefined

readonly parentTask: Task | undefined
readonly taskNumber: number
readonly workspacePath: string

Expand Down
Loading