fix(coding-agent): scoped python kernel cleanup to sessions
scoped retained-kernel ownership to agent sessions and cleaned it up on session disposal cleaned up warmed python owners on session startup failure and rejected new direct and tool-based python starts during disposal, including async hook, preflight, and warmup races
This commit is contained in:
@@ -20,9 +20,10 @@ class FakeKernel {
|
||||
return { status: "ok", cancelled: false, timedOut: false, stdinRequested: false };
|
||||
}
|
||||
|
||||
async shutdown(): Promise<void> {
|
||||
async shutdown(): Promise<{ confirmed: boolean }> {
|
||||
this.shutdownCalls += 1;
|
||||
this.alive = false;
|
||||
return { confirmed: true };
|
||||
}
|
||||
|
||||
isAlive(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user