From 3e9e9b6e80ced9dd4568edbccb61ae2ee37742ec Mon Sep 17 00:00:00 2001 From: Simon Klee Date: Sat, 18 Apr 2026 13:17:40 +0200 Subject: [PATCH] dedup: stream.patch --- packages/opencode/src/cli/cmd/run/footer.ts | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/packages/opencode/src/cli/cmd/run/footer.ts b/packages/opencode/src/cli/cmd/run/footer.ts index 6594cb6351..d7ab33c253 100644 --- a/packages/opencode/src/cli/cmd/run/footer.ts +++ b/packages/opencode/src/cli/cmd/run/footer.ts @@ -274,11 +274,6 @@ export class RunFooter implements FooterApi { } if (next.type === "stream.patch") { - if (typeof next.patch.status === "string" && next.patch.phase === undefined) { - this.patch({ phase: "running", ...next.patch }) - return - } - this.patch(next.patch) return } @@ -411,19 +406,7 @@ export class RunFooter implements FooterApi { } public destroy(): void { - if (this.destroyed) { - return - } - - this.flush() - this.destroyed = true - this.notifyClose() - this.clearInterruptTimer() - this.clearExitTimer() - this.renderer.off(CliRenderEvents.DESTROY, this.handleDestroy) - this.prompts.clear() - this.closes.clear() - this.scrollback.destroy() + this.handleDestroy() } private notifyClose(): void {