From 66bbd004fc873bc5b728ef0107c1ca0dee994757 Mon Sep 17 00:00:00 2001 From: can1357 Date: Thu, 18 Jun 2026 01:57:28 +0200 Subject: [PATCH] fix(coding-agent): prevented post-disposal state updates and callbacks - Prevented updating the default branch and triggering callbacks after the component is disposed. --- .../coding-agent/src/modes/components/status-line/component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/coding-agent/src/modes/components/status-line/component.ts b/packages/coding-agent/src/modes/components/status-line/component.ts index 807d9c1a8..b43fbdfbd 100644 --- a/packages/coding-agent/src/modes/components/status-line/component.ts +++ b/packages/coding-agent/src/modes/components/status-line/component.ts @@ -395,7 +395,7 @@ export class StatusLineComponent implements Component { this.#defaultBranch = "main"; (async () => { const resolved = await git.branch.default(getProjectDir()); - + if (this.#disposed) return; if (resolved) { this.#defaultBranch = resolved; if (this.#onBranchChange) {