This commit is contained in:
Will Li 2025-08-15 02:05:37 -07:00
parent 05f3887746
commit ad3baa88d2
2 changed files with 2 additions and 2 deletions

View file

@ -781,7 +781,7 @@ export class Task extends EventEmitter<TaskEvents> implements TaskLike {
// Run asynchronously to allow awaiting mode switch before sending the message
void (async () => {
// If a mode slug is provided, handle the mode switch first (same behavior as initClineWithTask)
// If a mode slug is provided, handle the mode switch first (same behavior as createTask)
try {
const modeSlugValue = (modeSlug ?? "").trim()
if (modeSlugValue.length > 0) {

View file

@ -2278,7 +2278,7 @@ describe("Bridge modeSlug handling", () => {
} as any)
// Pass modeSlug through the options object (as provided by the bridge package)
await provider.initClineWithTask("Started from bridge", undefined, undefined, {
await provider.createTask("Started from bridge", undefined, undefined, {
experiments: {},
modeSlug: "architect",
} as any)