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 {