@bismawy/pi-arnative 0.8.2 → 0.9.1
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 +86 -63
- package/README.md +61 -84
- package/extensions/animations.ts +0 -0
- package/extensions/arnative.ts +27 -4
- package/extensions/autocompact.ts +1 -1
- package/extensions/footer.ts +5 -2
- package/extensions/model-heal.ts +0 -0
- package/extensions/section-headers.ts +126 -44
- package/extensions/timestamps.ts +0 -0
- package/extensions/todos.ts +489 -0
- package/extensions/tools.ts +308 -100
- package/extensions/ui-render-tweaks.ts +0 -0
- package/extensions/usage.ts +0 -0
- package/lib/box.ts +77 -12
- package/lib/check.ts +0 -0
- package/lib/compat.ts +0 -0
- package/lib/format.ts +0 -0
- package/lib/list-picker.ts +0 -3
- package/lib/model-heal.ts +0 -0
- package/lib/patch.ts +0 -0
- package/lib/preset-store.ts +83 -4
- package/lib/provider.ts +256 -43
- package/lib/shortcuts.ts +8 -0
- package/lib/spinner.ts +0 -0
- package/lib/status-widget.ts +0 -0
- package/lib/todos.ts +473 -0
- package/lib/usage-store.ts +0 -0
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [Unreleased]
|
|
4
|
+
|
|
5
|
+
## [0.9.1] - 2026-11-02
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- **Providers → Edit changes the endpoint, the id or the key, one field per row.** Opening a provider now leads with `Edit`, and its menu shows what is stored beside each row: the base URL, the provider id, the key masked to its last four characters. A base URL is saved as typed (only a bare host gains its `http://`), so an edit lands what the user wrote instead of re-deriving `/v1` the way the add flow does, and the notify points at `Probe models` for the list that may have moved with it. A rename moves the models.json key and the auth.json credential together — the provider keeps its place in the list, a `name` that only repeated the old id follows it, the id is checked against the same `[A-Za-z0-9_-]` rule as create, and an id already taken is refused; if models.json cannot be written the credential is put back, so a failed rename never orphans the key. A new key lands in auth.json, the store pi reads before an inline `models.json` key, and the literal inline copy is dropped so the secret lives in one place, while an env-var or shell reference (`$VAR`, `!cmd`) is configuration and stays untouched; an emptied field keeps what is stored rather than blanking an endpoint or a credential. The three write paths share one row picker and one field patch with the action menu, which also gained the `Edit` row (`lib/provider.ts`, `withProviderFields`, `renameProvider`, `renameAuth`, `saveProviderKey`, `inlineKey`, `keyHint`; pinned in the module self-check).
|
|
9
|
+
|
|
10
|
+
## [0.9.0] - 2026-10-31
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- **Task list: `todo` tool, boxed widget and `/todos`.** Replaces `@juicesharp/rpiv-todo`, so uninstall that package first (both register the `todo` tool). The widget collapses to one boxed row naming the task in progress; clicking its hint in fullscreen mode, or `alt+o` in any mode, expands it to five rows around the active task, with `↑ n more` / `↓ n more` for the rest (the window grows with the terminal: five rows at 24 lines, up to nine past 28, three on a short screen), `✓` / `◉` / `◌` status glyphs and the in-progress note in dim, with the subject carrying the state too: the running task in soft accent, queued dim, a finished one plain. The frame follows the session thinking level, like every other arnative box, the tool box title names the status the call left behind (`todo · completed`, `· created`, `· list`) while the task name stays on the line below, and a list whose tasks are all done folds to `All tasks finished` and then takes the widget away after 30 seconds, so nothing parks there for good while `/todos` still shows the full list; opening the box during the wait keeps it on screen, a reopened task cancels the wait, a new task brings it back, and `PI_ARNATIVE_TODO_HIDE_MS` sets the wait. The heading icon and `✓` are accent, the count beside the icon is soft accent, `◉` borrows the footer's model-name colour (`mdHeading`, accent when a theme omits it), `◌` is dim. Click a counter row, or press `alt+j` / `alt+k`, to scroll the five-row window one task at a time; the window parks at either end and returns to the active task after a mutation. The box never exceeds pi's 10-line widget budget, and the expand hint survives a narrow terminal by cutting the task name instead. The list is per session in `<agent>/arnative/todos/<session id>.json`, written via a temp file with an in-place fallback on Windows when rename is refused; `/todos` lists every task in the arnative screen chrome, in progress first (`lib/todos.ts`, `extensions/todos.ts`, `test/todos.test.ts`).
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- **The Extensions tab lists packages the way `pi list` does.** The tab was built from pi's loaded-module listing, so a package arrived as eleven file names (`arnative.ts`, `footer.ts`, `usage.ts`) and never as the package itself. Rows now come from the packages in the global and project settings, one per package with the `npm:` prefix dropped, followed by the loose extension files that belong to no package (`hark.ts`, `omnirush`). The rows wrap sideways as one comma list, so the box keeps its height, the modules of a local-path package fold into that package's row (`D:/Pi/pi-arnative`), and the count matches `pi list` (`extensions/section-headers.ts`, `installedPackages`, `extensionTabItems`; `test/section-headers.test.ts`).
|
|
17
|
+
- **`config.json` lists every preset, including the ones left at their default.** A choice was written only once it differed from the default, so the header had no entry at all: the picker writes on move, and opening it on `Arnative (Full)` then pressing Enter wrote nothing, while a fresh install read a nearly empty file. `recordProfile()` now runs at `session_start` and records header, footer, spinner, gradient, auto-compact and model-heal through `ensureChoices`, which writes only the keys that differ and leaves a present-but-unreadable config untouched. `AUTO_COMPACT_KEY` is exported so every key has one source (`lib/preset-store.ts`, `extensions/arnative.ts`, `extensions/autocompact.ts`); `test/profile.test.ts` covers the default-value case, the byte-identical second run and the corrupt-file guard. Every write also emits one key order (header first, then the rest of the menu, `layoutVersion` before the newer keys), so reading or hand-editing the file no longer depends on which session saved last.
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
- **The expand hint is the whole click target, so box text stays copyable.** pi toggles a tool box on the click it synthesizes from a press and a release at the same cell, so a one-cell drift made the hint look inert, and the gap strip left the top border a dead row. The hint's cells are measured on every render and a left press there toggles at once; the release and the click that follow are swallowed, and only the click clears the flag, or the box toggled back. Any other cell is left to pi, so a drag over the output still selects and copies it. The label is matched on the title rows only, so text that happens to read `[show]` inside the output never becomes a button. The task widget works the same way: only `[click to expand]` / `[click to collapse]` and the counter rows take a press, which also made it drift-proof and left the task names selectable (`extensions/tools.ts`, `extensions/todos.ts`, `lib/box.ts`, `textSpans`).
|
|
21
|
+
- **The new Extensions rows keep the installed version.** Rebuilding the tab from `settings.json` dropped the `@version` that the old rows carried, because a configured source is often written without one (`npm:@bismawy/pi-agentrouter`). The version is now read from the package's own `package.json` under `<agent>/npm/node_modules`, the same file `pi list` resolves, and a source that already pins a version (`npm:pi-mcp-adapter@2.36.0`) keeps exactly that text (`extensions/section-headers.ts`, `npmRow`; `test/section-headers.test.ts`).
|
|
22
|
+
- **Both hints sit on the title row, next to the runtime.** The expand label shared a row with the summary, and it vanished when the box opened, so a box you had just expanded showed no way back. The box now says whether it is open with a word, `[show]` folded and `[hide]` open, at the right end of the title row in every box (the ordinary tools, the MCP and third-party path, and codemode), after the runtime and a dot: `195ms · [show]`. A box with nothing hidden shows no label at all, and the `ctrl+o` binding still toggles. Each is a click target, so a press with up to a cell of drift toggles the box and the summary line keeps its own width (`extensions/tools.ts`, `titleRow`, `HINT_EXPAND`, `HINT_COLLAPSE`).
|
|
23
|
+
- **Every box shows how long its call took.** The runtime came only from this module's own wall clock, so a box whose content comes from a third-party renderer (MCP, `find`/`grep` from pi-fff, pi-web-access) never had one, and a restored session had none because the map starts empty. pi's `durationMs` is read first and the recorded wall clock stays as the fallback, so the right end of the title row carries the figure again (`extensions/tools.ts`, `durationOf`).
|
|
24
|
+
- **A preset change reaches disk on Windows while pi is running.** The save wrote a temp file and renamed it over `config.json`. Windows refuses that replace with `EPERM` while another process holds the file open, which a running pi session does, so the picker looked saved and the value was gone after a restart. Three stale `config.json.<pid>.tmp` files on a real machine held the choices that never landed, including a header preset. The save now falls back to an in-place write on `EPERM`/`EBUSY`/`EXDEV` and removes its temp file (`lib/preset-store.ts`; the fallback is pinned in the self-check through a `rename` seam).
|
|
25
|
+
|
|
3
26
|
## [0.8.2] - 2026-10-28
|
|
4
27
|
|
|
5
28
|
### Changed
|
|
@@ -18,54 +41,54 @@
|
|
|
18
41
|
- **Status rows above the chat column now use the arnative mark and the theme's `dim` token.** pi renders a `setWidget` string array as unstyled `Text`, so every status line (model heal, the provider probe, other extensions' `setWidget` calls) landed in the default foreground. A render patch turns those arrays into a component factory that receives the live theme: the `\ueb1b` mark leads the block with one space, rows align under it, and a row another extension already painted keeps its own colour (an error row stays red). `lib/status-widget.ts`.
|
|
19
42
|
|
|
20
43
|
### Fixed
|
|
21
|
-
- **The Extensions tab lists packages, not every module inside them.** The header used to print one row per loaded entry point (`@bismawy/pi-arnative@0.8.0:footer.ts`, `:model-heal.ts`, …), so a twelve-module package filled the box on its own. The `:subpath` is dropped and each package appears once with its version
|
|
44
|
+
- **The Extensions tab lists packages, not every module inside them.** The header used to print one row per loaded entry point (`@bismawy/pi-arnative@0.8.0:footer.ts`, `:model-heal.ts`, …), so a twelve-module package filled the box on its own. The `:subpath` is dropped and each package appears once with its version, so the count matches what `pi list` shows. Local single-file extensions (`hark.ts`) are unchanged (`extensions/section-headers.ts`, `extractItemsFromBody`).
|
|
22
45
|
|
|
23
46
|
## [0.8.0] - 2026-10-26
|
|
24
47
|
|
|
25
48
|
### Added
|
|
26
49
|
- **Model heal keeps `models.json` correct with no command (adopted from pi-auto-compat).** On `session_start`, `model_select`, a change to `models.json` (debounced watcher) and an assistant error that names a rejected parameter, three passes run on the rules the provider wizard already uses: flags (missing compat flags and a default `thinkingLevelMap`, offline), meta (`contextWindow`/`maxTokens` from each channel's `GET /models`, 6 h TTL, unit anomalies rejected, caps clamped to the window) and effort (the `reasoning_effort` levels a relay accepts, remapped to the nearest accepted one, 24 h TTL). Each pass is one read-modify-write that writes only real differences: an explicit value (even `false`) is never overwritten, a hand-edited network value stays manual, a user-shaped map is never probed, a corrupt file is reported and never rewritten, and the first write keeps a backup. Channel-wide flags land at provider level; extension-owned providers are fixed through `modelOverrides`. `/arnative` → **Model heal** picks `Full` (default), `Flags` (offline only) or `Off`; `/model-heal` forces every pass now, and `/auto-compat` stays as an alias once pi-auto-compat is uninstalled. While pi-auto-compat is still installed, pi-arnative defers to it and says so once, so two healers never write the same file. State lives in `<agent>/arnative/model-heal.json` (`lib/model-heal.ts`, `extensions/model-heal.ts`).
|
|
27
|
-
- **Auto-compact keeps long sessions light.** `/arnative` → **Auto-compact** picks **Smart**
|
|
50
|
+
- **Auto-compact keeps long sessions light.** `/arnative` → **Auto-compact** picks **Smart** (a tier table by context window: ≥768k→20%, ≥384k→40%, ≥192k→80%, below 192k→pi core; every tier lands the trigger near the same ~200k-token transcript ceiling) or a **manual token budget** (`100k` to `400k`, one absolute number for any window). When a run settles with the context at or above the threshold, pi's own compaction fires through `ctx.compact()`, using the same machinery and summary as `/compact`, never mid-run. Small windows defer entirely: a 128k model keeps pi's near-full `reserveTokens` compaction untouched. The saved choice is marked with a green ✓ at the end of its picker row. Guards: no re-trigger while a compaction runs, a growth-margin wait (5% of the threshold) after an attempt that freed too little or failed (usage oscillating at the threshold cannot re-summarize every turn), and a full reset on session start (`extensions/autocompact.ts`).
|
|
28
51
|
- **The push gate hook now ships with the repo.** `.githooks/pre-push` is the pre-push gate the README describes (it used to live only in a machine-local setup): it rejects a branch push whose tip tree does not match the `.git/arnative-preview` stamp that `npm run preview` writes, so a fix cannot reach GitHub without a live preview. Tags and branch deletions pass; activate per clone with `git config core.hooksPath .githooks`.
|
|
29
|
-
- **Providers now write the limits and compat flags the endpoint implies.** The wizard already read the `/models` answer to list ids and threw the rest away; the same answer now also supplies each model's `contextWindow`/`maxTokens` (kept through later edits that never mention them) and a `compat` block the rules imply
|
|
30
|
-
- **Thinking screen: `p` asks the channel which effort levels it accepts.** A 7-request probe per model sends `none`…`max`, records what answers, and stores the result as that model's `thinkingLevelMap
|
|
52
|
+
- **Providers now write the limits and compat flags the endpoint implies.** The wizard already read the `/models` answer to list ids and threw the rest away; the same answer now also supplies each model's `contextWindow`/`maxTokens` (kept through later edits that never mention them) and a `compat` block the rules imply (developer-role off for reasoning models on a third-party OpenAI-compatible channel, session-affinity headers, Anthropic cache control on Claude-style relays, deepseek thinking format, adaptive thinking on Opus/Sonnet ≥ 4.6 and Fable ≥ 5), while any value already in `models.json` still wins (`lib/compat.ts`, `suggestCompat`; `lib/provider.ts`, `wireModels`).
|
|
53
|
+
- **Thinking screen: `p` asks the channel which effort levels it accepts.** A 7-request probe per model sends `none`…`max`, records what answers, and stores the result as that model's `thinkingLevelMap`: a rejected level is remapped to the nearest accepted one, so `/think` offers only real levels instead of discovering them one 400 at a time. The result is the map itself, so it stays until the level is changed by hand; a channel that answers nothing writes nothing (`lib/compat.ts`, `probeEffort`/`buildEffortMap`; `lib/provider.ts`, `thinkingFlow`). The screen also gains two bulk keys: `[A]` sets every model to `auto` and `[R]` sets every model to `off`, in memory only, so Esc still discards and Enter saves.
|
|
31
54
|
|
|
32
55
|
### Changed
|
|
33
56
|
- **Thinking now starts at `auto` for every model.** The provider wizard's id heuristic used to fall back to `off`, so a relay catalog with no effort suffix in its ids saved every model as chat and the Thinking screen showed almost nothing to do. The fallback is now `auto` (`reasoning: true`, no `thinkingLevelMap`), so `/think` passes the level straight to the endpoint for all of them; an explicit `-high`/`-xhigh`/`-max`/`-medium`/`-low`/`-minimal` suffix still pins that level, and Space in the Thinking screen still sets a model to `off` by hand (`lib/provider.ts`, `detectLevel`).
|
|
34
57
|
|
|
35
58
|
### Fixed
|
|
36
|
-
- **The preview gate launches pi again on Windows.** `scripts/preview.mjs` spawned `pi` directly, which Node cannot do on Windows
|
|
37
|
-
- **Large-session render cost: the per-frame patches are bounded now.** Both render patches scaled with the whole transcript on every frame, which made long sessions (a 1M-context model past ~20%) feel heavy in the terminal. The reload-box scan ran inside every `Container.render`
|
|
59
|
+
- **The preview gate launches pi again on Windows.** `scripts/preview.mjs` spawned `pi` directly, which Node cannot do on Windows because the npm launcher is a sh script (ENOENT) or a `.cmd` (needs a shell), so `npm run preview` crashed before pi ever opened and no push could ever be stamped. It now resolves the real entry (`where pi` → the global npm dir → `dist/bundle/cli.js`) and runs it with Node directly, args unquoted and intact; POSIX behavior is unchanged (`pi` still spawns directly when that works).
|
|
60
|
+
- **Large-session render cost: the per-frame patches are bounded now.** Both render patches scaled with the whole transcript on every frame, which made long sessions (a 1M-context model past ~20%) feel heavy in the terminal. The reload-box scan ran inside every `Container.render` (measured at 0.76 ms against pi's own 0.59 ms layout pass at 12.6k lines) and now refuses containers larger than 64 lines before scanning, because the reload box is a fixed ~9-line container (`extensions/ui-render-tweaks.ts`, `shouldHideReloadBox`). The user-bubble bg repair rebuilt every styled line on every frame and is now memoized per source line (pi's Markdown cache returns the same string references frame after frame), reset on a theme change and capped at 8192 entries (`extensions/timestamps.ts`, `repairBubbleBg`).
|
|
38
61
|
|
|
39
62
|
## [0.7.0] - 2026-10-24
|
|
40
63
|
|
|
41
64
|
### Added
|
|
42
|
-
- **Providers: a custom endpoint from three inputs.** `/arnative` → **Providers** asks for the endpoint URL, API key, and name, then probes the endpoint once (Ollama `/api/tags`, Gemini `/v1beta/models`, OpenAI/Anthropic `/models` lists), lists the models it answered with, and saves on Space-picked selection
|
|
43
|
-
- **Provider actions: edit and delete on Enter.** Enter on a stored provider opens an action menu
|
|
44
|
-
- **Reasoning auto-detection.** Model ids decide the thinking flag on save: a `thinking`/`reasoner` token, an effort suffix (`-high`/`-medium`/`-low`), or an o1/o3/o4/r1-style generation marks reasoning models
|
|
45
|
-
- **Thinking levels on pi's full scale.** The Thinking screen no longer toggles a boolean: Space cycles each model through `off → auto → minimal → low → medium → high → xhigh → max`, detected from the id (an explicit `-high`/`-xhigh`/`-max`… suffix pins that level; a `thinking`/`reasoner`/o1/r1 token means `auto`). Levels write pi's own wire shape
|
|
65
|
+
- **Providers: a custom endpoint from three inputs.** `/arnative` → **Providers** asks for the endpoint URL, API key, and name, then probes the endpoint once (Ollama `/api/tags`, Gemini `/v1beta/models`, OpenAI/Anthropic `/models` lists), lists the models it answered with, and saves on Space-picked selection: the key into `auth.json` (the file `/login` writes), the declaration into `models.json`. `[a]` switches the API flavor when a relay answers in an ambiguous shape; no answer falls back to manual ids. Opening `/model` picks up the saved provider (`extensions/provider.ts`).
|
|
66
|
+
- **Provider actions: edit and delete on Enter.** Enter on a stored provider opens an action menu (Select models, Probe models, which re-reads the endpoint while vanished models stay listed, Thinking, Delete). Every action writes through to `models.json` immediately (delete also removes the `auth.json` key); sibling provider fields like `compat` survive every edit.
|
|
67
|
+
- **Reasoning auto-detection.** Model ids decide the thinking flag on save: a `thinking`/`reasoner` token, an effort suffix (`-high`/`-medium`/`-low`), or an o1/o3/o4/r1-style generation marks reasoning models (`ag/claude-opus-4-6-thinking` and `ag/gemini-4-argon-high` on, `wally/glm-5.3-flash` off). The Thinking screen lists the flags with the detected values and Space overrides them.
|
|
68
|
+
- **Thinking levels on pi's full scale.** The Thinking screen no longer toggles a boolean: Space cycles each model through `off → auto → minimal → low → medium → high → xhigh → max`, detected from the id (an explicit `-high`/`-xhigh`/`-max`… suffix pins that level; a `thinking`/`reasoner`/o1/r1 token means `auto`). Levels write pi's own wire shape (`reasoning: true` plus a `thinkingLevelMap` that pins exactly the supported level), so `/think` offers the model's real levels and clamps to them (`xhigh`/`max` only appear when mapped, exactly as pi's schema defines).
|
|
46
69
|
- **Scrolling model lists.** The shared picker gains a 10-row viewport: long relay catalogs scroll a window centered on the cursor, with `↑ N more` / `↓ N more` rows announcing what is hidden, so the box keeps one height (`lib/list-picker.ts`).
|
|
47
70
|
- **Picked count in the models legend.** The models picker footer reads `34/44 picked · [↑↓] Move …` with the count in the accent color, next to the keys it describes (`lib/box.ts` renders a pre-styled legend verbatim).
|
|
48
|
-
- **Back where it belongs.** `←` works in submenus only: the provider list steps back to the `/arnative` menu, the provider actions step back to the list, and every settings screen keeps its `[←] Back` legend. The root menu hides the key entirely (`back: false`)
|
|
49
|
-
- **The provider list reflects its own edits.** After adding, editing or deleting a provider, the Providers screen re-reads `models.json` instead of showing the copy it opened with
|
|
50
|
-
- **Wizard prompts in the arnative box.** Every text field the provider wizard asks for (endpoint, key, name, manual ids, headless fallbacks) renders as an arnative screen: rounded thinking-colored border, `Provider - Arnative⠙` title, the field as the description, a `> ` prompt with the pi-tui editor underneath (arrows, word motions, paste, undo all work), a dim example while empty, and the `[Enter] Save [Esc] Cancel` legend
|
|
51
|
-
- **Probe status above the chat input.** While the wizard probes an endpoint (add flow and the Probe models action), a one-line dim `probing endpoint…` appears directly above the chat input (pi's `setWidget` aboveEditor slot) and disappears the moment the probe settles
|
|
52
|
-
- **All pi-arnative files in one folder, cache 55% smaller.** Everything the package writes now lives under `~/.pi/agent/arnative/`
|
|
53
|
-
- **Footer diff stat now tracks edits as they land.** The git refresh ran only at session and turn start, so a session that edits or commits inside a turn (the normal pattern when each step is committed) kept showing the pre-turn snapshot
|
|
71
|
+
- **Back where it belongs.** `←` works in submenus only: the provider list steps back to the `/arnative` menu, the provider actions step back to the list, and every settings screen keeps its `[←] Back` legend. The root menu hides the key entirely (`back: false`): it has nothing behind it, so Esc and `q` stay the only closes and its legend reads `[↑↓] Move [Enter] Open [Esc] Close`. Fill screens (model pick, thinking levels) hide it too, so a stray `←` cannot throw away a half-picked list.
|
|
72
|
+
- **The provider list reflects its own edits.** After adding, editing or deleting a provider, the Providers screen re-reads `models.json` instead of showing the copy it opened with, so a new provider appears immediately with no `/arnative` round-trip.
|
|
73
|
+
- **Wizard prompts in the arnative box.** Every text field the provider wizard asks for (endpoint, key, name, manual ids, headless fallbacks) renders as an arnative screen: rounded thinking-colored border, `Provider - Arnative⠙` title, the field as the description, a `> ` prompt with the pi-tui editor underneath (arrows, word motions, paste, undo all work), a dim example while empty, and the `[Enter] Save [Esc] Cancel` legend, replacing pi's full-width native input dialog (`lib/list-picker.ts`, `InputPicker`).
|
|
74
|
+
- **Probe status above the chat input.** While the wizard probes an endpoint (add flow and the Probe models action), a one-line dim `probing endpoint…` appears directly above the chat input (pi's `setWidget` aboveEditor slot) and disappears the moment the probe settles, instead of occupying a status row in the bottom footer (`lib/provider.ts`, `probingStatus`).
|
|
75
|
+
- **All pi-arnative files in one folder, cache 55% smaller.** Everything the package writes now lives under `~/.pi/agent/arnative/` (`config.json` for preset choices and `usage-cache.json` for the `/usage` scan cache) instead of three flat `arnative-*.json` files in `~/.pi/agent/`; existing files are migrated in automatically on first read. The cache gained a compact disk shape: keys are session-dir-relative paths, rollups store one row per provider+model (provider rows are derived on load), and one-letter field names (90 KB shrank to 40 KB on a real machine with identical answers). The legacy `arnative-prices.json` is deleted from the disk on first load (nothing has read it since pricing moved into `cost` fields in pi's `models.json`, which the provider wizard fills in), and a flat file a downgrade recreated beside the folder copy is removed the same way; `config.json` stamps a `layoutVersion` so the next layout change has one hook to migrate from. Preset choices and the cache are never deleted, only moved (`lib/preset-store.ts`, `lib/usage-store.ts`).
|
|
76
|
+
- **Footer diff stat now tracks edits as they land.** The git refresh ran only at session and turn start, so a session that edits or commits inside a turn (the normal pattern when each step is committed) kept showing the pre-turn snapshot, often clean, and the `+X -Y` working-tree diff never appeared. The footer now re-reads git state whenever a tool call finishes (edit, write, or a commit through bash); concurrent refreshes still coalesce into at most two `git` runs per burst (`extensions/footer.ts`).
|
|
54
77
|
|
|
55
78
|
### Changed
|
|
56
|
-
- **`/arnative` → Themes lists this package's themes only.** The picker shows the `arnative` family (`arnative` and its variants) and nothing else
|
|
79
|
+
- **`/arnative` → Themes lists this package's themes only.** The picker shows the `arnative` family (`arnative` and its variants) and nothing else: pi's own `system`/`dark`/`light` and a theme of your own (e.g. `omarchy-system`) stay in `/settings` → Theme, which keeps the full list. Esc still reverts to whatever theme was active when the picker opened, arnative or not, and the empty-list message now points at a reinstall instead of the themes folder (`extensions/arnative.ts`).
|
|
57
80
|
|
|
58
81
|
### Fixed
|
|
59
|
-
- **Esc cancels the add-provider flow at every prompt.** The flow asked for endpoint, API key and provider name, but only Esc at the first prompt aborted: Esc at the key prompt continued keyless (and could save a provider with a dummy key that never authenticates), Esc at the name prompt silently accepted the suggested name. Both prompts now honor the `[Esc] Cancel` their legend promises
|
|
60
|
-
- **Provider config writes are atomic.** `writeJson` wrote `models.json` and `auth.json` with a direct `writeFileSync`, so a crash or power loss mid-write could truncate them
|
|
82
|
+
- **Esc cancels the add-provider flow at every prompt.** The flow asked for endpoint, API key and provider name, but only Esc at the first prompt aborted: Esc at the key prompt continued keyless (and could save a provider with a dummy key that never authenticates), Esc at the name prompt silently accepted the suggested name. Both prompts now honor the `[Esc] Cancel` their legend promises: Enter on an empty key field still means keyless, and an empty name still accepts the suggestion (`lib/provider.ts`).
|
|
83
|
+
- **Provider config writes are atomic.** `writeJson` wrote `models.json` and `auth.json` with a direct `writeFileSync`, so a crash or power loss mid-write could truncate them: a truncated `auth.json` breaks the stored credentials of every provider, and the wizard then refuses to save until the file is repaired by hand. It now writes a temp file and renames it over the target, the same pattern `preset-store.ts` and `usage-store.ts` already use, and the self-check proves an interrupted save leaves the previous config intact (`lib/provider.ts`).
|
|
61
84
|
|
|
62
85
|
## [0.6.2] - 2026-10-20
|
|
63
86
|
|
|
64
87
|
### Fixed
|
|
65
|
-
- **The usage cache no longer loses another session's rollup.** `saveDiskCache` wrote its whole in-memory map, so of two pi sessions sharing one agent dir the later writer dropped the entries the other had cached for its own files. It now re-reads the disk cache before the rename and keeps the keys this session does not have
|
|
88
|
+
- **The usage cache no longer loses another session's rollup.** `saveDiskCache` wrote its whole in-memory map, so of two pi sessions sharing one agent dir the later writer dropped the entries the other had cached for its own files. It now re-reads the disk cache before the rename and keeps the keys this session does not have, only while their session file still exists, so a prune done by this scan stays pruned (`lib/usage-store.ts`).
|
|
66
89
|
|
|
67
90
|
### Added
|
|
68
|
-
- **The footer cache cell falls back to pi's own usage.** `pi-cache-optimizer` only reports providers it has an adapter for; a provider it does not recognize (a custom one such as `hark.ts`) publishes no `pi-cache-stats` status and the cell stayed empty. It now shows `pi X%`, computed as `cacheRead / (input + cacheRead)` from the usage pi already records on the branch
|
|
91
|
+
- **The footer cache cell falls back to pi's own usage.** `pi-cache-optimizer` only reports providers it has an adapter for; a provider it does not recognize (a custom one such as `hark.ts`) publishes no `pi-cache-stats` status and the cell stayed empty. It now shows `pi X%`, computed as `cacheRead / (input + cacheRead)` from the usage pi already records on the branch; the optimizer's own string still wins when present (`extensions/footer.ts`).
|
|
69
92
|
|
|
70
93
|
## [0.6.1] - 2026-10-19
|
|
71
94
|
|
|
@@ -79,36 +102,36 @@
|
|
|
79
102
|
## [0.6.0] - 2026-10-17
|
|
80
103
|
|
|
81
104
|
### Fixed
|
|
82
|
-
- **A model id no longer reports another route's tokens.** The match rule also accepted a stored name the target merely *ends* with (`target.endsWith("/" + name)`), so a first run under `river/deepseek-ai/DeepSeek-V4.1-Flash` showed wally+yarz's `deepseek-v4.1-flash` history
|
|
105
|
+
- **A model id no longer reports another route's tokens.** The match rule also accepted a stored name the target merely *ends* with (`target.endsWith("/" + name)`), so a first run under `river/deepseek-ai/DeepSeek-V4.1-Flash` showed wally+yarz's `deepseek-v4.1-flash` history (29.5M in / 3.2M out / 360.5M cache reads) as its own. Matching is now exact after `canonicalModel` (trimmed, case-folded, `:route` tag dropped), so the header's Model tab and `/usage` state the tokens of the id they name. Measured on the operator's own history: River reports 148.5k in / 26.5k out / 1.6M cache reads, and the old totals stay reachable under `deepseek-v4.1-flash` (`lib/usage-store.ts`).
|
|
83
106
|
- Self-check pinning per-id totals: a bare id does not absorb a longer id that ends with it, a path id counts its own provider only, case does not split one model's history, and a `:free` tag still folds into the model it tags. Proved negative: restoring the suffix rule fails `npm test` (`extensions/usage.ts`).
|
|
84
|
-
- **The `[g]` sweep no longer strobes.** One cycle now takes 20s (`GRADIENT_CYCLE_MS`) instead of 4s. The frame interval is fixed per preset, so a fast cycle forces a huge colour jump between frames
|
|
107
|
+
- **The `[g]` sweep no longer strobes.** One cycle now takes 20s (`GRADIENT_CYCLE_MS`) instead of 4s. The frame interval is fixed per preset, so a fast cycle forces a huge colour jump between frames: measured worst-case step was 64.9 RGB units at 200ms and 26.2 at 80ms, which the eye reads as flashing rather than a sweep. 20s brings that to 13.2 and 5.7; the self-check pins those ceilings so a later speed-up cannot silently reintroduce the strobe (`lib/spinner.ts`).
|
|
85
108
|
|
|
86
109
|
### Added
|
|
87
|
-
- **The Animations picker previews the live frame, and lists presets in a stable order.** The selected row's note now ends in the preset's *current* frame
|
|
88
|
-
- **`Dot Spine` preset.** A dot body growing outward from a two-cell core
|
|
89
|
-
- **`Bagua Trigram` preset.** Three I Ching trigrams
|
|
90
|
-
- **`Yin Yang Lines` preset.** The four I Ching digrams
|
|
91
|
-
- **`Pacman` preset.** Pacman eating his way across the row, one cell per frame
|
|
92
|
-
- **The package now has its own spinner and ships it as the default: `Arnative`.** A spark (`✧` / `✦`) and a Braille cell trading places around the centre
|
|
110
|
+
- **The Animations picker previews the live frame, and lists presets in a stable order.** The selected row's note now ends in the preset's *current* frame: the picker repaints every 80ms and reads the frame from the clock (`previewFrameAt`), so a dropped repaint costs one frame and can never desynchronise the animation. The glyph is padded to the widest frame of that preset, so the row does not shift as it moves. Rows are `Pi (system)`, `Arnative`, then the rest alphabetically: the escape hatch and the package's own spinner are the two a user reaches for and must not move when a preset is added. The self-check pins the order, name uniqueness, and the clock arithmetic; the picker was rendered at 80/100/120 columns with 0 width mismatches (`lib/spinner.ts`, `extensions/animations.ts`, `extensions/arnative.ts`).
|
|
111
|
+
- **`Dot Spine` preset.** A dot body growing outward from a two-cell core (`⠂⠐` → `⠺ ⠂⠐ ⠗` → `⠺ ⠪ ⠂⠐ ⠕ ⠗` at 200ms, one cell added at each end per frame). All three frames are 10 columns so the label never shifts, and the self-check pins the frames plus two properties the animation depends on: the core `⠂⠐` stays in columns 4 to 5 in every frame, and the dot count grows `2,4,6`. Named off the `Braille *` prefix so it does not read as a third variant of `Braille Column`/`Braille Level`; the note still says braille, which is what the glyphs are (`lib/spinner.ts`).
|
|
112
|
+
- **`Bagua Trigram` preset.** Three I Ching trigrams (`☶` U+2636, mountain → `☵` U+2635, water → `☳` U+2633, thunder) at 200ms. Like `Yin Yang Lines`, none of the three exists in the terminal face (JetBrainsMono Nerd Font) but all three are served by the same fallback face at the same 1.50 cells, so the row keeps its place. Three of the eight trigrams are used, not all eight: a spinner is a short loop. Frames are pinned by codepoint in the operator's order, and the self-check asserts all three are distinct (`lib/spinner.ts`).
|
|
113
|
+
- **`Yin Yang Lines` preset.** The four I Ching digrams (`⚌` U+268C, both lines whole → `⚎` U+268E, lower line broken → `⚍` U+268D, break moves up → `⚏` U+268F, both broken) at 200ms, so a single broken yin line travels through the pair. All four glyphs are absent from the terminal face (JetBrainsMono Nerd Font) but every one is served by the same fallback face at the same 1.50 cells, which is the property that matters: a constant width means no sideways shift, unlike a set that mixes native and fallback glyphs. Frames are pinned by codepoint in the operator's order, and the self-check asserts all four are distinct (`lib/spinner.ts`).
|
|
114
|
+
- **`Pacman` preset.** Pacman eating his way across the row, one cell per frame (`ᗧ + − ×` → `~ ᗧ − ×` → `~ ~ ᗧ ×` → `~ ~ ~ ᗧ` at 200ms), with the eaten pellets left as a ghost trail. `ᗧ` is U+15E7 (Canadian Syllabics `ye`), the glyph the pacman CLI spinners use because it reads as an open mouth facing right. The self-check pins the exact frames and asserts the mouth sits in column `2 × frameIndex`, which is the animation's whole point (`lib/spinner.ts`).
|
|
115
|
+
- **The package now has its own spinner and ships it as the default: `Arnative`.** A spark (`✧` / `✦`) and a Braille cell trading places around the centre (`✧⠙` → `✧⣠` → `⣄✧` → `⠋✦` at 200ms), painted with the theme accent (or the brand sweep under `[g]`). `DEFAULT_SPINNER_PRESET` moved from `Diamond Glow` to `Arnative`, so a fresh install shows it without opening a menu; an existing install keeps whatever it already stored. Two frames carry a trailing space; it is load-bearing, because both cells are one column wide and dropping it would shift the label sideways on every second frame. The self-check pins the exact frames by codepoint, asserts every frame of a multi-glyph preset has one length, and pins the default (`lib/spinner.ts`).
|
|
93
116
|
- **The `arnative` theme is applied on a fresh install.** `session_start` checks pi's own theme setting and calls `ctx.ui.setTheme("arnative")` only when no setting exists and the theme actually loaded. A theme you chose is never overridden, and because `setTheme` writes the setting, the check is a no-op on every later session (`extensions/arnative.ts`).
|
|
94
|
-
- **`Arrow Orbit` preset.** A four-arrow ring turning clockwise one position per frame
|
|
117
|
+
- **`Arrow Orbit` preset.** A four-arrow ring turning clockwise one position per frame (`▴▸▾◂` → `▸▾◂▴` → `▾◂▴▸` → `◂▴▸▾` at 200ms), one full turn per 0.8s, the same rate as `Diamond Glow`. Frames are pinned by codepoint in the self-check (U+25B4, U+25B8, U+25BE, U+25C2) so a font fallback cannot swap a glyph unnoticed (`lib/spinner.ts`).
|
|
95
118
|
- **`[g]` in `/arnative` → Animations paints accent presets with the Google brand sweep.** The switch sits on the Animations screen only, states its current mode in the legend (`[g] Gradient on`), saves as `spinnerGradient` in `arnative-config.json`, and repaints the live spinner the moment it is pressed. Esc and `←` undo it together with a previewed preset, so leaving the screen restores what it opened with. `Gemini` already sweeps and `Claudeon` carries its own mark colour, so the override leaves both untouched (`lib/spinner.ts`, `extensions/animations.ts`, `extensions/arnative.ts`).
|
|
96
119
|
|
|
97
120
|
### Changed
|
|
98
121
|
- **`UsageModalComponent.hintText` is gone: the render path calls `legendUsage(width)` directly.** A private one-line method that returned another function added a name with no behaviour, so the call site now states what it wants (`extensions/usage.ts`).
|
|
99
|
-
- **`Claudeon`: the `Claude` preset, renamed and restyled
|
|
100
|
-
- **`Claudeon`'s frames are native-only, so the row cannot walk sideways.** The old set (`· ✢ U+2733 * ✶ ✻ ✽`) mixed font-fallback widths: `✢` `✻` `✽` are absent from most monospace faces, so the terminal served them from a fallback font
|
|
122
|
+
- **`Claudeon`: the `Claude` preset, renamed and restyled (inspired by Claude).** The preset was called `Claude` and reused Claude Code's own dingbats; it is now `Claudeon`, a mark of this package's own that reads as the Claude-style pulse without borrowing Claude's name for a glyph set Claude does not use. The attribution lives in the row's note (`inspired by Claude — pulsing marks, 120ms`) rather than only in the code, and the paint mode and colour constant follow (`claude` → `claudeon`, `CLAUDE_RGB` → `CLAUDEON_RGB`); the grey-orange mark colour is kept, because that colour is what makes the pulse read as the Claude-style spinner. The preset had not shipped yet, so no stored config can reference the old name (`lib/spinner.ts`, `extensions/animations.ts`).
|
|
123
|
+
- **`Claudeon`'s frames are native-only, so the row cannot walk sideways.** The old set (`· ✢ U+2733 * ✶ ✻ ✽`) mixed font-fallback widths: `✢` `✻` `✽` are absent from most monospace faces, so the terminal served them from a fallback font; measured in the terminal face (JetBrainsMono Nerd Font), `✢`/`✤`/`✻`/`✽`/`❋` advance **1.48** cells and `U+2733` **2.29**, against a **1.00** native cell, so the label shifted on every tick that used one and `U+2733` sheared the row. The set is now `· * ⋆ ✶` (U+00B7, U+002A, U+22C6, U+2736), four marks that every monospace face checked (JetBrainsMono Nerd Font, Consolas, Cascadia, Lucida, Courier) reports at exactly 1.00, giving an 8-frame there-and-back loop (`· * ⋆ ✶ ✶ ⋆ * ·`, the peak held for two frames as elsewhere in the package) at 120ms, so the displacement is 0.00 cells. There is no fifth mark to add: a scan of all 86 installed families found none covering the Dingbats block at ~1 em (`lib/spinner.ts`).
|
|
101
124
|
|
|
102
125
|
## [0.5.3] - 2026-10-14
|
|
103
126
|
|
|
104
127
|
### Fixed
|
|
105
128
|
- A new session showed the previous session's token counts. The footer's 2s `getUsage` cache is keyed on branch length, and the module is not re-imported by `/new`, so a fresh session whose branch happened to reach the same length read the cached sums instead of its own. The cache is now cleared in the non-reload `session_start` branch (`extensions/footer.ts`).
|
|
106
|
-
- **The cell was invisible: the footer still matched the value on `jev-eye`.** The value became `Eye: ● ON (Clef Flash)`, which contains no `jev-eye` anywhere, so `value.includes("jev-eye")` went false and the whole cell fell through to the generic path
|
|
129
|
+
- **The cell was invisible: the footer still matched the value on `jev-eye`.** The value became `Eye: ● ON (Clef Flash)`, which contains no `jev-eye` anywhere, so `value.includes("jev-eye")` went false and the whole cell fell through to the generic path (no icon, no dim backend suffix, just grey text). The router now recognises the cell by the label its value carries (`isJevEyeStatus`, `^\s*Eye\s*:`), and the self-check pins that rule from both sides: every mode's real value is recognised, `Jev: ● ON` and `MCP: 2 servers enabled` are not, and the value is asserted to contain no internal key name. Proved negative: reverting the rule to the substring test makes both `node extensions/footer.ts` and pi-jev-eye's `render-check` fail.
|
|
107
130
|
- **One space after the glyph, not two.** The two spaces existed because the previous glyph's ink overran its cell (`\uedcf`); with `\uf21b` in place they read as a gap in ` Eye: ● ON (Clef Flash)`. Pinned in pi-jev-eye's render check as one space, with an explicit assert that the glyph is not followed by two.
|
|
108
131
|
|
|
109
132
|
### Changed
|
|
110
133
|
- **The cell glyph is U+F21B (`fa-user_secret`), chosen by the operator.** U+EDCF (`fa-user_shield`) was the previous one; both exist in JetBrainsMono Nerd Font, and the codepoint is pinned by number in pi-jev-eye's render check because a Nerd glyph that renders blank on another platform is the bug the ponytail cell had (`\uef51` -> `\uef04`).
|
|
111
|
-
- **The pi-jev-eye status cell renders `Eye: ● ON (Backend)`, parsed from the value instead of hardcoded.** The format is `Eye: ● ON (Clef Flash)` when a Clef model answers and `Eye: ● ON (Jev)` when TypeSafe or OpenRouter does. `jevEyeStatusLine()` reads the label before the first colon and the backend from the trailing parentheses
|
|
134
|
+
- **The pi-jev-eye status cell renders `Eye: ● ON (Backend)`, parsed from the value instead of hardcoded.** The format is `Eye: ● ON (Clef Flash)` when a Clef model answers and `Eye: ● ON (Jev)` when TypeSafe or OpenRouter does. `jevEyeStatusLine()` reads the label before the first colon and the backend from the trailing parentheses, so nothing about the cell is a literal in this repo, and an older pi-jev-eye value with no suffix gains no guessed one.
|
|
112
135
|
- **The backend suffix takes `dim`, while `Eye:` and the state keep their tiers.** A backend painted like the label would bury `Eye: ● ON`, which is the case this cell exists for; the spaced `Clef Flash` (not a nested `clef (flash)`) reads as one label on a single line.
|
|
113
136
|
- **The status line moved out of the render closure**, next to `ponytailStatusLine`, so the self-check in `node extensions/footer.ts` drives the exact path the footer uses instead of a copy of it.
|
|
114
137
|
- Dropped two unused imports (`CustomMessageComponent`, `isPointerOrFocusInput`) and corrected three stale statements: the usage estimate comment named `prices.json` where the code reads `models.json`, the footer header listed two of the three footer presets, and the README's local-test snippet ran one extension where `npm run dev` runs all eight (`extensions/ui-render-tweaks.ts`, `lib/usage-store.ts`, `extensions/footer.ts`, `test/footer-minimal.test.ts`, `README.md`).
|
|
@@ -120,11 +143,11 @@
|
|
|
120
143
|
|
|
121
144
|
### Fixed
|
|
122
145
|
- Restored the footer's two-tone labels. `0.5.1` moved the label colour onto `softOf(accent)`, which softens the *accent* hue, so cwd/branch/clock/status text inherited the accent (pink) instead of the border-accent (blue) tier and the footer collapsed into a single hue (`extensions/footer.ts`).
|
|
123
|
-
- Added `vars.secondarySoft` to all 11 themes, softened from the same value the `borderAccent` token resolves to (L 0.82, chroma × 0.18, hue kept), and `softSecondaryOf` in `lib/ansi.ts` to derive the identical value at runtime
|
|
146
|
+
- Added `vars.secondarySoft` to all 11 themes, softened from the same value the `borderAccent` token resolves to (L 0.82, chroma × 0.18, hue kept), and `softSecondaryOf` in `lib/ansi.ts` to derive the identical value at runtime: `vars` names are not addressable via `fg()`, and Pi 1.2 rejects custom `colors` keys, so the declared and derived values must be produced by one recipe.
|
|
124
147
|
- Routed the header's model/thinking/token text, tool bodies, list rows and the usage dashboard onto the label tier. Icons, marks and the logo's second tone stay on the accent tier, so each line keeps its two tones (`extensions/section-headers.ts`, `extensions/tools.ts`, `extensions/usage.ts`, `extensions/arnative.ts`, `extensions/ui-render-tweaks.ts`).
|
|
125
148
|
|
|
126
149
|
### Added
|
|
127
|
-
- `soften()` is now shared by the generator and the runtime, and `extensions/ui-render-tweaks.ts` asserts every declared `*Soft` var equals its derived value
|
|
150
|
+
- `soften()` is now shared by the generator and the runtime, and `extensions/ui-render-tweaks.ts` asserts every declared `*Soft` var equals its derived value, so a drifting or rogue soft colour fails `npm test` instead of shipping (`themes/gen-themes.mjs`, `lib/ansi.ts`).
|
|
128
151
|
- Behavioral test pinning the two-tone rule: labels take the border-accent hue, icons keep the accent hue (`test/footer-minimal.test.ts`).
|
|
129
152
|
|
|
130
153
|
### Notes
|
|
@@ -133,7 +156,7 @@
|
|
|
133
156
|
## [0.5.1] - 2026-10-13
|
|
134
157
|
|
|
135
158
|
### Fixed
|
|
136
|
-
- Restored all 11 arnative themes on Pi 1.2.0, which validates the `colors` object with `additionalProperties: false` and rejected the whole theme
|
|
159
|
+
- Restored all 11 arnative themes on Pi 1.2.0, which validates the `colors` object with `additionalProperties: false` and rejected the whole theme ("must not have additional properties" followed by "Theme not found", `lib/ansi.ts`, `themes/gen-themes.mjs`, `themes/*.json`, `extensions/ui-render-tweaks.ts`). Arnative's own colors (`accentSoft`, `primary`, `secondary`, `primarySoft`, `secondarySoft`) moved from `colors` to `vars`.
|
|
137
160
|
- Kept the two-tone soft tier instead of collapsing it to grey: `softOf` replaces `accentSoftOf` and derives the soft accent from the resolved `accent` color when `fg("accentSoft")` throws, so the header logo, tab labels, model line, footer labels, tool titles and the usage dashboard keep their tint (`lib/ansi.ts`).
|
|
138
161
|
- Updated `$schema` in every theme and the generator from the raw GitHub `theme-schema.json` path to the published `https://pi.dev/schemas/theme.schema.json` (`themes/gen-themes.mjs`, `themes/*.json`).
|
|
139
162
|
- Replaced the footer's raw `fg("accentSoft")` probe with the shared painter and mapped `primary`/`secondary` onto the official tokens they carry (`mdHeading`, `borderAccent`), since Pi 1.2 rejects custom `colors` keys (`extensions/footer.ts`).
|
|
@@ -148,7 +171,7 @@
|
|
|
148
171
|
### Added
|
|
149
172
|
- Extended theme token hierarchy in `vars` with `primary`, `primarySoft`, `secondary`, and `secondarySoft` across all 11 themes (`themes/gen-themes.mjs`), ensuring unique hex mappings and full perceptual OKLCH color space discipline.
|
|
150
173
|
- Tri-color multi-palette overhauls for expressive themes (`arnative-cyberpunk`, `arnative-synthwave`, `arnative-dracula`, `arnative-gruvbox`, and `arnative-nord`), mapping `mdHeading` to `primary` and `borderAccent`/`mdCode` to `secondary`.
|
|
151
|
-
- Footer multi-color pairing (`extensions/footer.ts`): paired
|
|
174
|
+
- Footer multi-color pairing (`extensions/footer.ts`): paired saturated `accent` icons with readable `secondarySoft` labels and highlighted the model name with `primary`.
|
|
152
175
|
|
|
153
176
|
### Changed
|
|
154
177
|
- Increased message bubble background lightness (`surfaceMsg` / `userMessageBg`) on `arnative-cyberpunk`, `arnative-matrix`, and `arnative-synthwave` to 24% (`oklch(24% 0.035 ...)`) to ensure container boundaries remain clearly defined against pitch-black terminal canvases.
|
|
@@ -192,7 +215,7 @@
|
|
|
192
215
|
## [0.3.9] - 2026-10-08
|
|
193
216
|
|
|
194
217
|
### Fixed
|
|
195
|
-
- The README told you to press `ctrl+e` to expand a tool box. The key actually follows pi's `app.tools.expand` binding, whose default is `ctrl+o` (`lib/format.ts`, `extensions/tools.ts`). Docs only
|
|
218
|
+
- The README told you to press `ctrl+e` to expand a tool box. The key actually follows pi's `app.tools.expand` binding, whose default is `ctrl+o` (`lib/format.ts`, `extensions/tools.ts`). Docs only: no behaviour changed in this release.
|
|
196
219
|
|
|
197
220
|
### Changed
|
|
198
221
|
- The README now states the footer facts it never listed: all three presets (`Arnative (Full)`, `Pi (system)`, `Arnative (Minimal)`), the Minimal preset's click behaviour and `ctrl+alt+m`, the session clock surviving `/resume`, and the working-tree diff beside it (`README.md`).
|
|
@@ -200,20 +223,20 @@
|
|
|
200
223
|
## [0.3.8] - 2026-10-08
|
|
201
224
|
|
|
202
225
|
### Added
|
|
203
|
-
- New footer preset **Arnative (Minimal)**, selectable in `/arnative` → Footers. It shows a single head row (cwd, clock, diff, git, model) with a dim `▲` at the end of each side. Each head's own text is the click target
|
|
204
|
-
- The footer shows the working tree's diff next to the session clock only while there is one: `\uf4d2 +500 -100`, with the same green/red the diff body uses (`toolDiffAdded`/`toolDiffRemoved`). It comes from `git diff HEAD --numstat` in the existing `refreshGit` pass (one extra spawn, nothing new on the per-frame path) and is hidden when the tree is clean or git cannot answer (not a repo, no binary)
|
|
226
|
+
- New footer preset **Arnative (Minimal)**, selectable in `/arnative` → Footers. It shows a single head row (cwd, clock, diff, git, model) with a dim `▲` at the end of each side. Each head's own text is the click target (anywhere on the cwd/git string toggles the left side for extension statuses, and anywhere on the model string toggles the right side for speed/cache/token), while the blank gap between them is inert, so a stray click on empty space cannot expand anything. Opened sides show `▼` and their rows; the two sides open independently. Ctrl+alt+M (alt+M on Windows/WSL) toggles both, so it also works in `tuiMode: "regular"` where the terminal owns the mouse. Zone columns are measured from the row this module places itself rather than mirrored from `pairRow`, because the ellipsis on a truncated head shifts every column after it (`extensions/footer.ts`, `lib/shortcuts.ts`).
|
|
227
|
+
- The footer shows the working tree's diff next to the session clock only while there is one: `\uf4d2 +500 -100`, with the same green/red the diff body uses (`toolDiffAdded`/`toolDiffRemoved`). It comes from `git diff HEAD --numstat` in the existing `refreshGit` pass (one extra spawn, nothing new on the per-frame path) and is hidden when the tree is clean or git cannot answer (not a repo, no binary), with no fake `+0 -0` and no dangling icon. A repo with an unborn `HEAD` (no commit yet) falls back to diffing against the empty tree, so a staged first commit still counts. Note the count is the whole uncommitted change, not just this session's edits: it includes anything done before or outside the session. Untracked files are not part of a diff and stay counted by the `~N` worktree segment (`extensions/footer.ts`).
|
|
205
228
|
|
|
206
229
|
### Fixed
|
|
207
230
|
- The footer's session clock no longer restarts when you switch sessions with `/resume`. The reset came from `session_start`, which set the start to `Date.now()` for every reason but `"reload"`. It now reads the session header's `timestamp` (the moment the session was created) for `"resume"`/`"startup"`, so the duration reflects the session's real age; `"new"`/`"fork"` write a fresh header and still start at zero. A missing or unparsable header falls back to now (`extensions/footer.ts`).
|
|
208
|
-
- Every third-party tool that ships its own `renderCall`/`renderResult` now renders in the arnative box, not just the ones on a hardcoded name list. The predicate was an allowlist (`ls`, `powershell`, `ffgrep`, `fffind`, `find`, `grep`, `BOXED_TOOLS`, MCP), so any other extension's tool
|
|
231
|
+
- Every third-party tool that ships its own `renderCall`/`renderResult` now renders in the arnative box, not just the ones on a hardcoded name list. The predicate was an allowlist (`ls`, `powershell`, `ffgrep`, `fffind`, `find`, `grep`, `BOXED_TOOLS`, MCP), so any other extension's tool (present or future) fell through to pi's `contentBox`: a padded background block with no border. It is now shape-based: boxed unless the tool declares `renderShell: "self"` (arnative's own boxes) or is in `NOT_BOXED` (`extensions/tools.ts`).
|
|
209
232
|
- The inter-box gap is now stripped for the generic box path too. The gap-strip patch keyed on a name list (`OWN_BOX`), so a tool boxed by the widened predicate but not registered through `minimal()`/`BOXED_TOOLS` kept the leading `Spacer` and floated a blank row above its box (`extensions/tools.ts`).
|
|
210
233
|
|
|
211
234
|
## [0.3.7] - 2026-10-05
|
|
212
235
|
|
|
213
236
|
### Fixed
|
|
214
|
-
- The `powershell` and `ls` tools now render in the arnative box like every other call. pi draws a tool that ships its own `renderCall`/`renderResult` but sets no `renderShell` through its own `contentBox`
|
|
237
|
+
- The `powershell` and `ls` tools now render in the arnative box like every other call. pi draws a tool that ships its own `renderCall`/`renderResult` but sets no `renderShell` through its own `contentBox` (a background block with no border). Both tools match that shape (their definitions spread the renderer functions onto the tool object), so they now go through `minimal()` like `bash`/`grep`/`read`. `powershell` is Windows-only: `getPowerShellConfig()` throws elsewhere, and re-registering it would activate a tool the builtin deliberately leaves off (`extensions/tools.ts`).
|
|
215
238
|
- pi-fff's default-mode tools `ffgrep` and `fffind` are boxed too. The box path only recognized the override names `find`/`grep`, which pi-fff uses when it replaces pi's builtins, so a session running it in default mode showed those calls as bare blocks (`extensions/tools.ts`).
|
|
216
|
-
- pi's `[Extension issues]` diagnostic now draws in the arnative box, stripped to two content rows: the title (warning glyph + section name, brackets dropped, `[ctrl+o to expand]` hint) over the extension's source path. pi's extra diagnostic lines are dropped
|
|
239
|
+
- pi's `[Extension issues]` diagnostic now draws in the arnative box, stripped to two content rows: the title (warning glyph + section name, brackets dropped, `[ctrl+o to expand]` hint) over the extension's source path. pi's extra diagnostic lines are dropped, as the expand hint stands in for them (`extensions/section-headers.ts`).
|
|
217
240
|
- The package-update box title lost the double space after its glyph (`extensions/ui-render-tweaks.ts`).
|
|
218
241
|
|
|
219
242
|
### Changed
|
|
@@ -230,10 +253,10 @@
|
|
|
230
253
|
|
|
231
254
|
### Fixed
|
|
232
255
|
- Git info in the footer now works on a fresh machine: the branch is read straight from `.git/HEAD` (the trick pi's own footer uses), so it shows without a `git` install and on a repo git refuses to touch (its dubious-ownership guard). Tag, dirty count and ahead/behind still need the `git` binary; when it cannot answer, those parts are left out instead of a fabricated `-`/`clean` (`extensions/footer.ts`).
|
|
233
|
-
- `run()` no longer swallows a failed `git` call into `""`. "git said nothing" and "git could not run" used to be indistinguishable, which is what made four different states
|
|
256
|
+
- `run()` no longer swallows a failed `git` call into `""`. "git said nothing" and "git could not run" used to be indistinguishable, which is what made four different states (not a repo, no `git` on PATH, a detached HEAD, and a foreign-owned repo) all show as no git info at all.
|
|
234
257
|
- The header's `Context`/`Skills`/`Extensions` counts show `—` instead of a misleading `0` under `"quietStartup": true` (or `"header"`), which hides the resource listing the counts are read from. The empty-tab placeholder now says the counts are not tracked, and the state resets on `session_start` so `/new` cannot show stale counts (`extensions/section-headers.ts`).
|
|
235
258
|
- The header and footer preset chosen in `/arnative` now survives a restart. The choice was only kept on `globalThis`, so every new pi process fell back to the default Arnative (Full) header and footer. It is now written to `arnative-config.json` in the agent dir and read back at startup (`lib/preset-store.ts`, `extensions/section-headers.ts`, `extensions/footer.ts`).
|
|
236
|
-
- The reload-box patch no longer blanks a whole chat: it only drops a container that holds nothing but the box itself (border rows, blank spacers and the message copy). Any other container whose content merely mentioned "Reloading keybindings"
|
|
259
|
+
- The reload-box patch no longer blanks a whole chat: it only drops a container that holds nothing but the box itself (border rows, blank spacers and the message copy). Any other container whose content merely mentioned "Reloading keybindings" (`read`/`grep` results or this repo's own source) was rendered as zero lines (`extensions/ui-render-tweaks.ts`).
|
|
237
260
|
- Row-1 git info works from a subfolder of a repo: `.git` is looked up by walking up the directory tree like git itself does, so the branch no longer vanishes when the session runs in `extensions/` or `src/` (`extensions/footer.ts`).
|
|
238
261
|
- A tool result whose text merely starts with `Error` is no longer painted as a failed call (red `x`); only `ctx.isError`/`result.isError` decide. Reading a file that opens with "Error handling…" used to show an error box (`extensions/tools.ts`).
|
|
239
262
|
- The stale git state is cleared when the working directory leaves a repo, so a `/reload` cannot re-show the previous directory's branch (`extensions/footer.ts`).
|
|
@@ -267,14 +290,14 @@
|
|
|
267
290
|
- Collapsed `codemode` is now two rows, the same footprint as `bash`/`grep`/`read`: title + the script's first line. Nested calls and output wait behind the standard `[ctrl+o to expand]` hint. A failing run still shows its output.
|
|
268
291
|
- pi's `Script completed / Wall time / Output:` header no longer shows in the box.
|
|
269
292
|
- Shared duration wording (`2ms` under a second, `1.4s` above) and one error glyph (`x`) across every tool; a failing `codemode` run shows its whole output and never a `[ctrl+o to expand]` hint.
|
|
270
|
-
- The file tools (`bash`, `read`, `write`, `grep`, `find`, `edit`) now show `[ctrl+o to expand]` when their collapsed summary hides more than it shows
|
|
293
|
+
- The file tools (`bash`, `read`, `write`, `grep`, `find`, `edit`) now show `[ctrl+o to expand]` when their collapsed summary hides more than it shows, so a two-line `extra +1 / -1` box no longer looks complete while its diff sits behind it. Expanded and genuinely single-line results get no hint (`extensions/tools.ts`).
|
|
271
294
|
- The `chrome_devtools_*` tools (from `@narumitw/pi-chrome-devtools`) now render in the same box instead of their bare "Chrome DevTools: …" lines. Their own `renderCall`/`renderResult` are bypassed: the call box uses the Chrome glyph and the result box the usual summary + `[ctrl+o to expand]` (`extensions/tools.ts`).
|
|
272
295
|
|
|
273
296
|
## [0.3.2] - 2026-10-04
|
|
274
297
|
|
|
275
298
|
### Changed
|
|
276
299
|
- Source cleanup only: the generator's 11 `accent` seeds, the color self-check and one test fixture no longer hold raw hex. Each seed is now the OKLCH value of the same colour (`#00d7ff` → `oklch(81.1% 0.1455 217.709375)`), produced by `hexToOklch`, so the theme output is **byte-identical**; `themes/*.json` are untouched. `lib/color.ts` also keeps its hex, deliberately: those literals are the test vectors for the hex parser, not styling (`themes/gen-themes.mjs`, `lib/color.ts`, `extensions/ui-render-tweaks.ts`).
|
|
277
|
-
- `themes/gen-themes.mjs` dropped its private `parseOklch` (percent-only regex) for the shared one in `lib/color.ts`, which also accepts a fractional `L
|
|
300
|
+
- `themes/gen-themes.mjs` dropped its private `parseOklch` (percent-only regex) for the shared one in `lib/color.ts`, which also accepts a fractional `L`, so a seed can no longer parse as `NaN`.
|
|
278
301
|
- No user-visible change; this release exists to bring the npm tarball in line with `main` after #8.
|
|
279
302
|
|
|
280
303
|
## [0.3.1] - 2026-10-04
|
|
@@ -282,9 +305,9 @@
|
|
|
282
305
|
### Changed
|
|
283
306
|
- `/arnative headers` and `/arnative footers` picker rows are reordered built-in first (`Pi (system)`, `Arnative (Full)`) and the parenthetical suffix now renders in the theme's `dim` token, so the preset name carries the row and the qualifier reads as a footnote (`extensions/arnative.ts`).
|
|
284
307
|
- Preset ids renamed: `Pi` → `Pi (system)`. `Arnative (Full)` is still the default and the header/footer slot logic is unchanged.
|
|
285
|
-
- Picker subtitles no longer repeat the preset names
|
|
308
|
+
- Picker subtitles no longer repeat the preset names (`Selection applies live — custom header or built-in.`).
|
|
286
309
|
- README shows only `assets/pi-arnative.webp` as the hero image; the full-width `assets/banner.webp` stays reserved for the pi.dev package page via `pi.image`.
|
|
287
|
-
- `package.json` `description` now leads with the README tagline ("Refined aesthetics. Cohesive tools. Built for Pi.") followed by the capability summary, per the `/arnative-pi` manifest standard
|
|
310
|
+
- `package.json` `description` now leads with the README tagline ("Refined aesthetics. Cohesive tools. Built for Pi.") followed by the capability summary, per the `/arnative-pi` manifest standard, since pi.dev/packages renders this field verbatim as the package card description.
|
|
288
311
|
|
|
289
312
|
## [0.3.0] - 2026-10-03
|
|
290
313
|
|
|
@@ -294,27 +317,27 @@
|
|
|
294
317
|
- `getModelAllTimeUsage()` without a model id matched **every** model, so the header's Model tab showed the grand total under "No Model"; it now matches nothing (zeros).
|
|
295
318
|
- The usage disk cache never dropped session files deleted from disk, so `~/.pi/agent/arnative-usage-cache.json` only ever grew; `collectUsageSummary()` now prunes missing files while scanning.
|
|
296
319
|
- A git refresh arriving while one was in flight was dropped (early return in `refreshGit()`), so the footer's git state stayed stale until the next trigger; it is now queued (last requested cwd wins) and re-run after the in-flight one (`extensions/footer.ts`).
|
|
297
|
-
- `USER_TIMESTAMPS_MAP` grew for the whole process lifetime (it survives `/reload`); `session_start` now clears it first
|
|
298
|
-
- The footer's token usage could show numbers up to 2s stale while a reply streamed: the cache only refreshed when the branch length changed, but a stream tick mutates the last message in place. The delta of that message is now applied on top of the cached sums
|
|
320
|
+
- `USER_TIMESTAMPS_MAP` grew for the whole process lifetime (it survives `/reload`); `session_start` now clears it first and refills it from the branch right after, so it is bounded by the current session (`extensions/timestamps.ts`).
|
|
321
|
+
- The footer's token usage could show numbers up to 2s stale while a reply streamed: the cache only refreshed when the branch length changed, but a stream tick mutates the last message in place. The delta of that message is now applied on top of the cached sums (O(1) per frame, always fresh, still no O(N) rescan, `getUsage()` in `extensions/footer.ts`).
|
|
299
322
|
|
|
300
|
-
### Changed (breaking
|
|
301
|
-
- All 12 `themes/*.json` are now generated from `themes/gen-themes.mjs` and store **OKLCH** values (`oklch(L% C H)`) instead of hand-written hex. `vars` was renamed to a role-based scheme (`text`→`fg`, `gray`→`fgMuted`, `dimGray`→`fgDim`, `darkGray`→`fgFaint`, `cyan`→`accentBorder`, `softCyan`→`accentSoft`, `blue`→`border`, `green/red/yellow`→`success/error/warning`, `searchBg`→`surfaceSearch`, `selectedBg`→`surfaceSelected`, `userMsgBg`→`surfaceMsg`, `toolPendingBg`→`surfaceRaised`, `toolSuccessBg`→`surfaceToolOk`, `toolErrorBg`→`surfaceToolErr`, `customMsgBg`→`surfaceCustom`); the custom `colors.tint` token was renamed to `colors.accentSoft`. Any theme copied from the old 0.2.x files must be updated by hand
|
|
323
|
+
### Changed (breaking: theme contents)
|
|
324
|
+
- All 12 `themes/*.json` are now generated from `themes/gen-themes.mjs` and store **OKLCH** values (`oklch(L% C H)`) instead of hand-written hex. `vars` was renamed to a role-based scheme (`text`→`fg`, `gray`→`fgMuted`, `dimGray`→`fgDim`, `darkGray`→`fgFaint`, `cyan`→`accentBorder`, `softCyan`→`accentSoft`, `blue`→`border`, `green/red/yellow`→`success/error/warning`, `searchBg`→`surfaceSearch`, `selectedBg`→`surfaceSelected`, `userMsgBg`→`surfaceMsg`, `toolPendingBg`→`surfaceRaised`, `toolSuccessBg`→`surfaceToolOk`, `toolErrorBg`→`surfaceToolErr`, `customMsgBg`→`surfaceCustom`); the custom `colors.tint` token was renamed to `colors.accentSoft`. Any theme copied from the old 0.2.x files must be updated by hand, as there is no compatibility shim.
|
|
302
325
|
- Colour sets are now derived from a shared ramp, so every theme has consistent lightness/saturation per type and no two `vars` resolve to the same value (the old base had `accent` = `cyan`, `syntaxOperator` = `syntaxPunctuation` = `text`, and variants that copied 12+ identical hex values).
|
|
303
326
|
- `lib/color.ts` (new) holds the OKLCH↔sRGB math, WCAG contrast and `toHex`, shared by the generator and the theme self-check.
|
|
304
327
|
|
|
305
328
|
### Changed
|
|
306
329
|
- The header's `Themes` tab is gone: pi 1.0 no longer emits a startup `[Themes]` section (only Context, Skills, Prompts, Extensions), so the tab could only ever read `Themes [0]`. The theme list stays reachable through `/settings` → Theme and `/arnative themes` (`extensions/section-headers.ts`).
|
|
307
|
-
- Select menus (`ctx.ui.select`, e.g. `/arnative` and `/jev-eye`): the selected row no longer turns fully accent
|
|
330
|
+
- Select menus (`ctx.ui.select`, e.g. `/arnative` and `/jev-eye`): the selected row no longer turns fully accent; only the `→` marker and `·` separators keep accent, while the selected text uses `accentSoft` (fallback accent on themes without the token). Live-preview theme picker follows the same rule (`extensions/ui-render-tweaks.ts`, `extensions/arnative.ts`).
|
|
308
331
|
- `accentSoftOf` (accentSoft token with accent fallback) moved to `lib/ansi.ts`, shared by `tools.ts`, `usage.ts` and the new select-row patch; the theme picker no longer crashes when a built-in theme without `accentSoft` is previewed.
|
|
309
332
|
- Theme self-check (`extensions/ui-render-tweaks.ts`) now accepts hex **or** validated OKLCH, converts through `lib/color.ts` before building pi's `Theme` (the bundled 0.87.1 parser only understands hex), asserts every `vars` value is unique per theme, and asserts the thinking ramp rises monotonically.
|
|
310
333
|
|
|
311
334
|
### Added
|
|
312
|
-
- `/arnative footers` picks the footer preset with the same live-preview picker as headers: `Arnative (Full)` (default, the 3-row grid footer) or `Pi` (pi's built-in footer, stock line count). Moving the selection swaps the footer on the spot, Enter keeps it, Esc restores the preset the picker opened with. The boxed editor is registered once per session and stays arnative in both presets
|
|
313
|
-
- `/arnative headers` picks the header preset: `Arnative (Full)` (default, this extension's header) or `Pi` (pi's built-in header). It uses the same live-preview picker as themes
|
|
314
|
-
- `/arnative <menu>` settings command, shaped like `/jev-eye`: no argument opens the menu picker with autocomplete; first menu `themes` is a live-preview picker over the `/settings` → Theme list
|
|
335
|
+
- `/arnative footers` picks the footer preset with the same live-preview picker as headers: `Arnative (Full)` (default, the 3-row grid footer) or `Pi` (pi's built-in footer, stock line count). Moving the selection swaps the footer on the spot, Enter keeps it, Esc restores the preset the picker opened with. The boxed editor is registered once per session and stays arnative in both presets, since pi's `setEditorComponent()` calls `disposeActiveSelector()`, which would close the picker mid-preview (`extensions/footer.ts`, `extensions/arnative.ts`).
|
|
336
|
+
- `/arnative headers` picks the header preset: `Arnative (Full)` (default, this extension's header) or `Pi` (pi's built-in header). It uses the same live-preview picker as themes: moving the selection swaps the header on the spot via `ctx.ui.setHeader()`, Enter keeps it, Esc restores the preset the picker opened with. The choice lasts for the process (a new pi launch starts at `Arnative (Full)` again) (`extensions/section-headers.ts`, `extensions/arnative.ts`).
|
|
337
|
+
- `/arnative <menu>` settings command, shaped like `/jev-eye`: no argument opens the menu picker with autocomplete; first menu `themes` is a live-preview picker over the `/settings` → Theme list (moving the selection applies the theme instantly via `ctx.ui.setTheme()`, Enter keeps it, Esc reverts to the theme opened with, `extensions/arnative.ts`). The picker component (`ListPicker`) is shared by the themes, headers and footers menus, and the three identical picker-label helpers were consolidated into `markedLabels()` in `lib/format.ts`.
|
|
315
338
|
|
|
316
339
|
### Changed
|
|
317
|
-
- Header layout reworked (`extensions/section-headers.ts`): the left column is the pi block mark with `pi vX` directly under it (10 columns wide). The info column starts with `Arnative vY · Welcome back, <User>` (username's first letter capitalized via `capitalize()`), then the tab box and the tab data
|
|
340
|
+
- Header layout reworked (`extensions/section-headers.ts`): the left column is the pi block mark with `pi vX` directly under it (10 columns wide). The info column starts with `Arnative vY · Welcome back, <User>` (username's first letter capitalized via `capitalize()`), then the tab box and the tab data, with no blank lines so no row is left half empty. The box is 7 lines.
|
|
318
341
|
- The mark is the pi logo's grid rendered at terminal aspect (8 columns x 4 lines) instead of the 6-line "Pi" wordmark, and keeps the old wordmark's two-tone: P (the salmon/blue structure, columns 0-2) in the theme accent, i (the yellow bar, column 3) in the theme tint.
|
|
319
342
|
- The column divider joins the frame with `┬`/`┴` (`render()`, `border()`), so the left/right split runs the full height with no gap at the top or bottom border.
|
|
320
343
|
- The tab box lost its ` Menu ` label, and its tab dividers now join its own borders with `┬`/`┴` (`tabRule()`, `tabSeps`), so each divider is full height instead of a lone `│` on the middle row.
|
|
@@ -322,7 +345,7 @@
|
|
|
322
345
|
## [0.2.12] - 2026-10-02
|
|
323
346
|
|
|
324
347
|
### Changed
|
|
325
|
-
- The footer is a fixed 3-row grid: row 1 pairs the cwd line with the model, rows 2-3 pair the extension status (mcp first) with the metrics (tok/s · cache · token)
|
|
348
|
+
- The footer is a fixed 3-row grid: row 1 pairs the cwd line with the model, rows 2-3 pair the extension status (mcp first) with the metrics (tok/s · cache · token), where each side wraps inside its half of the terminal, the right cells stay right-aligned, and a row where both sides ran out is dropped. Replaces the adaptive 2→3 reflow; no click toggle (`extensions/footer.ts`, `layoutFooterGrid()` + `pairRow()`).
|
|
326
349
|
|
|
327
350
|
## [0.2.11] - 2026-10-01
|
|
328
351
|
|
|
@@ -332,10 +355,10 @@
|
|
|
332
355
|
## [0.2.10] - 2026-10-01
|
|
333
356
|
|
|
334
357
|
### Added
|
|
335
|
-
- The working loader now shows elapsed turn time next to the label
|
|
358
|
+
- The working loader now shows elapsed turn time next to the label (`⠴ Working (50s)`, `⠴ Executing (1m 5s)`). One `setInterval(1s)` per turn (`extensions/footer.ts`), cleared on `turn_end`/`session_shutdown`; the suffix only appears from 1s (no `(0s)` flicker) and the timer keeps counting across tool switches inside a turn. With parallel tools the label follows the last started tool and only falls back to `Working` when every `toolCallId` has ended.
|
|
336
359
|
|
|
337
360
|
### Fixed
|
|
338
|
-
- Tool image previews (e.g. `read` on a PNG) no longer break the layout. pi renders a preview as an extra child below the tool box, padded with `result.rows - 1` blank rows, and the gap-stripping patch deleted exactly those rows
|
|
361
|
+
- Tool image previews (e.g. `read` on a PNG) no longer break the layout. pi renders a preview as an extra child below the tool box, padded with `result.rows - 1` blank rows, and the gap-stripping patch deleted exactly those rows, so the terminal painted the image over the rows underneath (chat text, editor, footer). Only the leading Spacer is dropped now; from the image sequence on, every line is kept.
|
|
339
362
|
|
|
340
363
|
## [0.2.9] - 2026-09-30
|
|
341
364
|
|
|
@@ -379,7 +402,7 @@
|
|
|
379
402
|
## [0.2.4] - 2026-09-28
|
|
380
403
|
|
|
381
404
|
### Added
|
|
382
|
-
- `lib/check.ts` and `lib/format.ts`: shared self-check helpers (`assert`, `isMain`) and shared display formatting (model names, capitalize, expand-hint key)
|
|
405
|
+
- `lib/check.ts` and `lib/format.ts`: shared self-check helpers (`assert`, `isMain`) and shared display formatting (model names, capitalize, expand-hint key), so footer, header tabs and tool boxes agree by construction.
|
|
383
406
|
|
|
384
407
|
### Fixed
|
|
385
408
|
- A crashing third-party tool renderer (e.g. pi-web-access `get_content` with missing args) no longer exits pi: every external renderer call is wrapped in a safe fallback, matching pi's own `updateDisplay` semantics.
|