chore: bump version to 0.1545

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
arkon
2026-02-18 21:53:34 +01:00
co-authored by Claude Opus 4.6
parent 989f8386b1
commit d7ad617d7f
7 changed files with 541 additions and 16 deletions
+8 -1
View File
@@ -176,7 +176,14 @@ export class BufferAccumulator {
private trim(): void {
const full = this.chunks.join('');
const trimmedBytes = full.length - this.trimSize;
const trimmed = full.slice(-this.trimSize);
let trimmed = full.slice(-this.trimSize);
// Avoid starting mid-ANSI-escape: advance to first newline within 4KB.
// A partial escape at the buffer start causes xterm.js to misparse
// subsequent cursor movements, corrupting Ink's redraw rendering.
const firstNewline = trimmed.indexOf('\n');
if (firstNewline > 0 && firstNewline < 4096) {
trimmed = trimmed.slice(firstNewline + 1);
}
this.chunks = [trimmed];
this.totalLength = trimmed.length;