Skip to content

Commit 291a9c0

Browse files
Acorn221nang-dev
authored andcommitted
fix: creator mode new tasks are also in creator mode
1 parent 115d0c8 commit 291a9c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/tools/newTaskTool.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export async function newTaskTool(
7878
// Delay to allow mode change to take effect before next tool is executed.
7979
await delay(500)
8080

81-
const newCline = await provider.initClineWithTask(message, undefined, cline)
81+
// Pass the creator mode config from the parent task to ensure creator mode is preserved
82+
const newCline = await provider.initClineWithTask(message, undefined, cline, {}, cline.creatorModeConfig)
8283
cline.emit("taskSpawned", newCline.taskId)
8384

8485
pushToolResult(`Successfully created new task in ${targetMode.name} mode with message: ${message}`)

0 commit comments

Comments
 (0)