mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 21:03:19 +00:00
Release v0.12.14
This commit is contained in:
parent
05849258b5
commit
4a972fbe6c
13 changed files with 120 additions and 38 deletions
|
|
@ -69,6 +69,7 @@ export class TuiRenderer {
|
|||
private loadingAnimation: Loader | null = null;
|
||||
|
||||
private lastSigintTime = 0;
|
||||
private lastEscapeTime = 0;
|
||||
private changelogMarkdown: string | null = null;
|
||||
|
||||
// Message queueing
|
||||
|
|
@ -343,6 +344,15 @@ export class TuiRenderer {
|
|||
|
||||
// Abort
|
||||
this.agent.abort();
|
||||
} else if (!this.editor.getText().trim()) {
|
||||
// Double-escape with empty editor triggers /branch
|
||||
const now = Date.now();
|
||||
if (now - this.lastEscapeTime < 500) {
|
||||
this.showUserMessageSelector();
|
||||
this.lastEscapeTime = 0; // Reset to prevent triple-escape
|
||||
} else {
|
||||
this.lastEscapeTime = now;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue