From 3166dae728992f96814adca9625e25dcaeadc545 Mon Sep 17 00:00:00 2001 From: Sviatoslav Abakumov Date: Mon, 13 Apr 2026 12:03:01 +0300 Subject: [PATCH] fix(coding-agent): flush queued messages after tree navigation (#3091) Messages sent during branch summarization are added to the compaction queue but never flushed when summarization ends. The user sees the message in the steering queue and has to manually dequeue and resend it. The fix is to flush the compaction queue after successful tree navigation, matching the existing behavior of auto-compaction and `/compact`. If the user jumps to a user message, the queued message is sent as a prompt, and the jumped-to text is placed in the editor. --- packages/coding-agent/src/modes/interactive/interactive-mode.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/coding-agent/src/modes/interactive/interactive-mode.ts b/packages/coding-agent/src/modes/interactive/interactive-mode.ts index 69d53712e..ef90fe80e 100644 --- a/packages/coding-agent/src/modes/interactive/interactive-mode.ts +++ b/packages/coding-agent/src/modes/interactive/interactive-mode.ts @@ -1237,6 +1237,7 @@ export class InteractiveMode { this.editor.setText(result.editorText); } this.showStatus("Navigated to selected point"); + void this.flushCompactionQueue({ willRetry: false }); return { cancelled: false }; }, switchSession: async (sessionPath) => { @@ -3831,6 +3832,7 @@ export class InteractiveMode { this.editor.setText(result.editorText); } this.showStatus("Navigated to selected point"); + void this.flushCompactionQueue({ willRetry: false }); } catch (error) { this.showError(error instanceof Error ? error.message : String(error)); } finally {