Release v0.7.21

This commit is contained in:
Mario Zechner 2025-11-19 00:56:16 +01:00
parent 5112fc6ba9
commit 1b28780155
16 changed files with 346 additions and 341 deletions

View file

@ -2,6 +2,14 @@
## [Unreleased]
## [0.7.21] - 2025-11-19
### Fixed
- **Terminal Flicker**: Fixed flicker at bottom of viewport (especially editor component) in xterm.js-based terminals (VS Code, etc.) by using per-line clear instead of clear-to-end sequence.
- **Background Color Rendering**: Fixed black cells appearing at end of wrapped lines when using background colors. Completely rewrote text wrapping and background application to properly handle ANSI reset codes.
- **Tool Output**: Strip ANSI codes from bash/tool output before rendering to prevent conflicts with TUI styling.
## [0.7.20] - 2025-11-18
### Fixed

View file

@ -1,6 +1,6 @@
{
"name": "@mariozechner/pi-coding-agent",
"version": "0.7.20",
"version": "0.7.21",
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
"type": "module",
"bin": {
@ -21,8 +21,8 @@
"prepublishOnly": "npm run clean && npm run build"
},
"dependencies": {
"@mariozechner/pi-agent": "^0.7.20",
"@mariozechner/pi-ai": "^0.7.20",
"@mariozechner/pi-agent": "^0.7.21",
"@mariozechner/pi-ai": "^0.7.21",
"chalk": "^5.5.0",
"diff": "^8.0.2",
"glob": "^11.0.3"

View file

@ -2,6 +2,7 @@ import * as os from "node:os";
import { Container, Spacer, Text } from "@mariozechner/pi-tui";
import chalk from "chalk";
import * as Diff from "diff";
import stripAnsi from "strip-ansi";
/**
* Convert absolute path to tilde notation if it's in home directory
@ -175,7 +176,8 @@ export class ToolExecutionComponent extends Container {
const textBlocks = this.result.content?.filter((c: any) => c.type === "text") || [];
const imageBlocks = this.result.content?.filter((c: any) => c.type === "image") || [];
let output = textBlocks.map((c: any) => c.text).join("\n");
// Strip ANSI codes from raw output (bash may emit colors/formatting)
let output = textBlocks.map((c: any) => stripAnsi(c.text || "")).join("\n");
// Add indicator for images
if (imageBlocks.length > 0) {