From 79f499e092bef6e36d26817da6c4add0a8d023d2 Mon Sep 17 00:00:00 2001 From: can1357 Date: Fri, 3 Jul 2026 00:55:57 +0200 Subject: [PATCH] feat(coding-agent/modes): requested UI render during loading state - Triggered a UI render update when transitioning to the loading animation state to ensure the interface reflects the status change immediately. --- packages/coding-agent/CHANGELOG.md | 2 ++ packages/coding-agent/src/modes/interactive-mode.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index db5c2e584..3c452d6b1 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -14,6 +14,8 @@ ### Fixed +- Fixed TUI loading animation sometimes failing to render during interactive mode status updates + - Fixed race conditions and potential hangs during agent startup by improving process lifecycle management - Fixed RpcClient startup errors intermittently losing the child's stderr (e.g. the "Unknown provider" message) by waiting for the process to exit — and its stderr to fully drain — before reporting a failed start; also fixed an unhandled rejection when the agent process is killed before becoming ready - Improved reliability of file edits when snapshots share identical hash tags diff --git a/packages/coding-agent/src/modes/interactive-mode.ts b/packages/coding-agent/src/modes/interactive-mode.ts index 5d1cea2a4..a36defebc 100644 --- a/packages/coding-agent/src/modes/interactive-mode.ts +++ b/packages/coding-agent/src/modes/interactive-mode.ts @@ -3584,6 +3584,7 @@ export class InteractiveMode implements InteractiveModeContext { } else if (!this.statusContainer.children.includes(this.loadingAnimation)) { this.statusContainer.clear(); this.statusContainer.addChild(this.loadingAnimation); + this.ui.requestRender(); } this.applyPendingWorkingMessage(); }