Skip to content

Commit ad3baa8

Browse files
committed
test fix
1 parent 05f3887 commit ad3baa8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/task/Task.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
781781

782782
// Run asynchronously to allow awaiting mode switch before sending the message
783783
void (async () => {
784-
// If a mode slug is provided, handle the mode switch first (same behavior as initClineWithTask)
784+
// If a mode slug is provided, handle the mode switch first (same behavior as createTask)
785785
try {
786786
const modeSlugValue = (modeSlug ?? "").trim()
787787
if (modeSlugValue.length > 0) {

src/core/webview/__tests__/ClineProvider.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2278,7 +2278,7 @@ describe("Bridge modeSlug handling", () => {
22782278
} as any)
22792279

22802280
// Pass modeSlug through the options object (as provided by the bridge package)
2281-
await provider.initClineWithTask("Started from bridge", undefined, undefined, {
2281+
await provider.createTask("Started from bridge", undefined, undefined, {
22822282
experiments: {},
22832283
modeSlug: "architect",
22842284
} as any)

0 commit comments

Comments
 (0)