repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

fix(os-notifier): clear rejected input state

f5c1e619f7bc6550ffb2048ec0f59ec173e9daba

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (4)

docs/super/specs/2026-07-12-os-notifier-design.md

Modified
22 22 Keep terminal focus detection and rich notification metadata.
23 23 Do not add settings, commands, tools, npm dependencies, daemons, or persistent state.
24 +Require Pi 0.80.6 or newer because final delivery uses the standard `agent_settled` event.
25 26 ## Eligibility

extensions/os-notifier/README.md

Modified
5 5 ## Install / load
7 7 Loaded through the root pi-ext package.
8 +Requires Pi 0.80.6 or newer for `agent_settled`.
8 9 See [root README](../../README.md).
10 11 ## Commands / tools / settings

extensions/os-notifier/__tests__/harness.test.ts

Modified
145 145 state.input("interactive");
146 146 state.start("tui");
147 147 expect(state.settle()).toBe(false);
149 + state.prepare();
150 + state.start("tui");
151 + expect(state.settle()).toBe(false);

extensions/os-notifier/index.ts

Modified
349 349 this.active = false;
350 350 this.activeTui = false;
351 351 this.current = false;
352 + this.pending = false;
353 + this.prepared = false;
352 354 return eligible;