mirror of
https://github.com/cline/cline.git
synced 2026-10-30 18:12:49 +08:00
fix(cli): abort active turn before mode switch (#71)
This commit is contained in:
@@ -442,6 +442,11 @@ export async function runInteractive(
|
||||
if (mode !== "plan" && mode !== "act") {
|
||||
return;
|
||||
}
|
||||
if (isRunning) {
|
||||
pendingModeChange.current = mode;
|
||||
sessionRuntime.abortAll();
|
||||
return;
|
||||
}
|
||||
await sessionRuntime.applyMode(mode);
|
||||
},
|
||||
onModelChange: async () => {
|
||||
|
||||
Reference in New Issue
Block a user