Release v0.12.14

This commit is contained in:
Mario Zechner 2025-12-06 00:46:57 +01:00
parent 05849258b5
commit 4a972fbe6c
13 changed files with 120 additions and 38 deletions

View file

@ -2,6 +2,12 @@
## [Unreleased]
## [0.12.14] - 2025-12-06
### Added
- **Double-Escape Branch Shortcut**: Press Escape twice with an empty editor to quickly open the `/branch` selector for conversation branching.
## [0.12.13] - 2025-12-05
### Changed

View file

@ -1,6 +1,6 @@
{
"name": "@mariozechner/pi-coding-agent",
"version": "0.12.13",
"version": "0.12.14",
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
"type": "module",
"piConfig": {
@ -28,9 +28,9 @@
"prepublishOnly": "npm run clean && npm run build"
},
"dependencies": {
"@mariozechner/pi-agent-core": "^0.12.13",
"@mariozechner/pi-ai": "^0.12.13",
"@mariozechner/pi-tui": "^0.12.13",
"@mariozechner/pi-agent-core": "^0.12.14",
"@mariozechner/pi-ai": "^0.12.14",
"@mariozechner/pi-tui": "^0.12.14",
"chalk": "^5.5.0",
"diff": "^8.0.2",
"glob": "^11.0.3"

View file

@ -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;
}
}
};