fix(pi): converge worker failures and thinking state

This commit is contained in:
2026-08-25 11:45:14 +08:00
parent 274187e3cf
commit 61817b161f
28 changed files with 2019 additions and 118 deletions

View File

@@ -19,6 +19,7 @@ import {
} from '../../electron/coding-runtime/pi/worker-pool';
import {
PiWorkerProcess,
type PiWorkerStopReason,
type PiWorkerStopResult,
} from '../../electron/coding-runtime/pi/worker-process';
@@ -60,8 +61,8 @@ class ProcessBackedWorker implements PiConversationWorker {
return this.process.subscribeInvalidation(listener);
}
stop(): Promise<PiWorkerStopResult> {
return this.process.stop();
stop(reason: PiWorkerStopReason): Promise<PiWorkerStopResult> {
return this.process.stop(reason);
}
}