pi-claude-code-ui 1.0.86 → 1.0.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  > [!IMPORTANT]
4
4
  > **1.0.69 — package rename (permanent).** Canonical npm name is now [`pi-claude-code-ui`](https://www.npmjs.com/package/pi-claude-code-ui). `pi-claude-style-tools` is legacy and will not receive further releases. Install with `pi install npm:pi-claude-code-ui` or `npm i pi-claude-code-ui`.
5
5
 
6
+ ## 1.0.87 — 2026-10-19
7
+
8
+ ### Fixed
9
+
10
+ - **Expanding image reads no longer crashes Pi** — clear the image-source reuse cache together with the hidden image components when a `read` result is collapsed. Re-expanding standalone or grouped image reads now creates valid image components instead of reusing a missing component and throwing `TypeError: Cannot read properties of undefined (reading 'render')`.
11
+
6
12
  ## 1.0.86 — 2026-10-08
7
13
 
8
14
  ### Fixed
@@ -3016,6 +3016,8 @@ function removeImageChildren(component: any): void {
3016
3016
  try { component.removeChild?.(child); } catch { /* noop */ }
3017
3017
  }
3018
3018
  component.imageComponents = [];
3019
+ // Pi reuses image components by matching imageSources; clear both caches.
3020
+ component.imageSources = [];
3019
3021
  component.imageSpacers = [];
3020
3022
  }
3021
3023
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-claude-code-ui",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "description": "Claude Code-style grouped tool rows for pi with Ctrl+O/Ctrl+Shift+O previews, math rendering, and consistent built-in, MCP, and custom tool rendering",
5
5
  "keywords": [
6
6
  "pi-package",