mirror of
https://github.com/earendil-works/pi.git
synced 2026-06-18 15:54:04 +08:00
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.
This commit is contained in:
committed by
GitHub
Unverified
parent
6fefa6fbab
commit
3166dae728
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user