merge: integrate agent server sleep restart

This commit is contained in:
2026-09-01 14:39:10 +08:00
5 changed files with 141 additions and 0 deletions

View File

@@ -490,6 +490,7 @@ export class PiAgentServerProcess {
}
start(): Promise<void> {
if (this.stopFlight) return this.stopFlight.then(() => this.start());
if (this.startFlight) return this.startFlight;
if (this.child && !this.failure) return Promise.resolve();
this.startFlight = this.startServer().finally(() => {