# Changelog

## [1.10.1] - 2026-11-30

### Added
- `/beautify info` (and `show`) to inspect current style, footer scope, and target `settings.json` path without mutating config.
- `/beautify ?` help alias and `createBeautifyAutocompleteProvider` via `ctx.ui.addAutocompleteProvider()` so `Tab` completes `/beautify` arguments cleanly in Pi 1.7.

## [1.10.0] - 2026-11-29

### Changed
- Rebuilt directly on `@earendil-works/pi-coding-agent` and `@earendil-works/pi-tui` `>= 1.7.0` (`6` flat modules replacing custom SDK shims and stacked abstractions).
- Simplified 9 overlapping presets down to 4 distinct font-safe presets (`claude`, `stream`, `nord`, `glow`) + `custom` + `off` with automatic migration of retired names.
- Changed default footer mode to `status-only` (`fullFooter = false`) so Pi's native footer remains intact unless explicitly opted in (`/beautify footer on`).
- Moved state into per-extension factory instances (`createBeautifierState()`) instead of shared module globals.

### Fixed
- Preserved full status text details instead of regex-stripping words; corrected high-priority classification for `paused`/`offline`/`stopped`.
- Enabled conditional 300ms spinner intervals only while spinning badges exist and cleaned up timers cleanly on `dispose()`.
- `/beautify custom edit` edits JSON via `ctx.ui.editor()` directly; `/beautify off` clears settings keys cleanly.
- Verified with 23/23 passing Vitest tests (`tsc --noEmit` + `eslint` + `vitest`).

## [1.9.1] - 2026-11-14

### Fixed
- A badge that carries both stage progress and a savings metric (`[2/3] Implementing · ~1.4k saved`) no longer loses the progress figure: the detail slot now composes `2/3 · ~1.4k saved` instead of showing savings alone. Values without a fraction render unchanged.
- Guard and cache-hit counters (`2 guarded`, `3 hits`) no longer need to be in the vocabulary for the badge to survive compaction; the savings metric already anchors it.

### Added
- Unit test suite expanded to 69 tests passing (100% green).

## [1.9.0] - 2026-11-14

### Changed
- Default visual preset changed from `minimal` to `claude` (Anthropic serene minimal dots with warm high-signal dot markers).
- `fullFooter` is now enabled by default (`true`), offering out-of-the-box 3-tier badge compaction, Git branch, and token telemetry formatting without manual configuration.
- `/beautify <style>` single-argument invocation now switches the visual preset immediately while preserving the active scope, eliminating modal interruption. Scope can still be explicitly targeted via `/beautify <style> full` or `/beautify <style> status`.

### Added
- Enhanced ecosystem status metric recognition for ToolFlow token savings (`~1.4k saved`) and guard active states.
- Comprehensive unit test suite expanded to 68 tests passing (100% green).

## [1.8.0] - 2026-10-18

### Changed
- Split the single 1064-line extension file into `extensions/lib/**` (presets, width, fold, settings, status, footer, state, command). The entry file keeps its name and re-exports the public surface, so `pi.extensions` and existing imports are unchanged.
- Retired three byte-identical presets: `matrix` (same as `tokyo`), `powerline` and `glass` (both same as `nord`). Old names still resolve through aliases, so existing `settings.json` files keep working.
- `minimal` is now selectable from the `/beautify` menu (it was already the config default but was missing from the list).
- Token totals in full-footer mode are memoised on the session entry array instead of rescanned on every repaint.

### Fixed
- **Style changes now take effect immediately.** `/beautify` used to write the new style and then call `loadConfig()`, which reassigned the same module globals from disk — silently reverting the user's choice until the next restart, and rendering an empty first frame when enabling full-footer.
- `off` now deletes the `beautifier` key from **both** the local and global settings file. Previously it only touched the local file when that file existed, so a global block could survive the revert.
- Revert no longer reports success after a swallowed write failure; it reports a warning with the failing path.
- Badge folding can no longer exceed the terminal width: the fold slot is reserved for the *remaining* badges, the `<= 2 badges` early return is gone, and the width sweep 8..120 columns is covered by tests.
- Dingbats and geometric shapes (`✓ ✗ ✦ ▲ ◆ ● ❯`) are measured as one cell instead of two. Emoji presentation (`❤️`), keycaps (`1️⃣`) and ZWJ sequences are measured correctly.
- The spinner no longer defeats the dirty check for non-spinning badges: only spinner-bearing badges bypass the value comparison.

### Added
- `tsconfig.json` with `strict`, plus `npm run typecheck` and `npm run check`.
- 22 new tests covering config hierarchy purity, apply/revert, zero-trace cleanup, fold boundaries and cell width.

## [1.1.1] - 2026-08-23
### Added
- Memory-hoisted visual cell-width checks of character sequences to correctly align TUI status templates (Finding 5)
- State cache-based dirty-checking for status updates to prevent redundant redrawing and layout flickering (Finding 6)
### Fixed
- Fixed TUI alignment issues involving full-width CJK characters and emojis in layout paddings

