Repository navigation
v1.0.17 — Hide extension widgets
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 usespi-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 doctorreports it as Widgets./todosand pi-todo's tools keep working. Changes to the list take effect when Pi restarts.
How it stays contained
- The filter wraps
InteractiveMode.setExtensionWidgetthrough 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 ciandnpm 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 withpi-hashline-edit-pro4.5.1 (ripgrep supplied onPATH).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.hidethe Updated Plan box shows and doctor reports Widgets OFF; with["pi-todo"]the box is gone, the transcript checklist and/todosstill 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