feat(tui,coding-agent): add OSC 9;4 terminal progress indicators

Emit OSC 9;4 progress start/end sequences during agent streaming and
compaction so terminals (iTerm2, WezTerm, Windows Terminal, Kitty, etc.)
show activity in their tab bar.

Made with love for @lucasmeijer
This commit is contained in:
Mario Zechner
2026-04-22 11:54:46 +02:00
parent df84e3d22f
commit a900d25119
6 changed files with 62 additions and 28 deletions

View File

@@ -27,6 +27,7 @@ class FakeTerminal implements Terminal {
clearFromCursor(): void {}
clearScreen(): void {}
setTitle(_title: string): void {}
setProgress(_active: boolean): void {}
get fullClearCount(): number {
return this.writes.filter((write) => write.includes("\x1b[2J\x1b[H\x1b[3J")).length;