Skip to content

v1.0.17 — Hide extension widgets

Choose a tag to compare

@QuangThai QuangThai released this 10 Oct 17:27
· 27 commits to main since this release

Hide chosen extension widgets

widgets.hide keeps chosen extension widgets off screen. The extension keeps running; only its widget is not drawn. With the claude-code transcript, pi-todo's checklist already appears in the transcript, so its pinned Updated Plan box above the editor can go:

{
  "piOmpTheme": {
    "widgets": { "hide": ["pi-todo"] },
    "compatibility": { "allowCorePatches": true }
  }
}

Added

  • widgets.hide: a list of extension widget keys to keep off screen (pi-todo uses pi-todo). Other widgets are untouched, and the list is empty by default, so nothing changes unless it is set.
  • Needs compatibility.allowCorePatches. /pi-omp-theme doctor reports it as Widgets. /todos and pi-todo's tools keep working. Changes to the list take effect when Pi restarts.

How it stays contained

  • The filter wraps InteractiveMode.setExtensionWidget through the existing identity-certified core patch registry. It is installed only when the list is non-empty, falls back to native rendering on an unrecognised Pi build, and yields if another extension already owns that method.

Verification

  • CI: this repository has no configured GitHub Actions workflows, check-runs, or commit-status contexts for the release commit. The local release gates below all passed.
  • npm ci and npm run check: typecheck, 312 unit/integration/golden tests (4 new for the widget filter), dependency boundaries, production build, and package smoke.
  • npm run test:e2e:readonly-tools: 25/25 packed-package CLI/RPC cases on Pi 0.99.1 with pi-hashline-edit-pro 4.5.1 (ripgrep supplied on PATH).
  • npm publish --dry-run: the expected 7-file npm artifact (141.7 kB packed).
  • Real TUI runs on Pi 1.1.0 with pi-todo, a deterministic local provider, and an isolated agent directory: without widgets.hide the Updated Plan box shows and doctor reports Widgets OFF; with ["pi-todo"] the box is gone, the transcript checklist and /todos still work, and doctor reports Widgets OK.

Tested on Windows x64 with Node 24.11.1. Linux/macOS runs were not part of this verification.

Install / update

Published on npm. The registry latest tag, gitHead (release commit), tarball shasum, a clean install whose bundle matches the release build byte for byte, and a real Pi 1.1.0 TUI run of the installed package with widgets.hide: ["pi-todo"] have been verified.

pi install npm:@nguyenquangthai/pi-omp-theme@1.0.17
# For an existing unpinned installation:
pi update npm:@nguyenquangthai/pi-omp-theme