Skip to content

Releases

v0.1.1 — Fix Esc handling in resume and dialogs

Choose a tag to compare

@Buchi-dev-dzn Buchi-dev-dzn released this 17 Nov 07:24

Fixes

  • Esc used to close /resume, other selectors, dialogs, or autocomplete no longer increments the interruption counter or displays an interrupt notification.
  • The guard now operates only when the main editor has focus and autocomplete is closed.
  • Existing custom editor factories are preserved and restored during cleanup.

Validation

  • 15 tests passed, including regressions for resume, focus changes, autocomplete, and editor compatibility.
  • GitHub Actions passed on Node.js 22, 24, and 26.

Update

pi update npm:pi-escape-guard

Run /reload or restart Pi after updating. npm publication is handled separately; check npm for version 0.1.1 before updating.

v0.1.0 — Initial release

Choose a tag to compare

@Buchi-dev-dzn Buchi-dev-dzn released this 17 Nov 07:07

pi-escape-guard 0.1.0

Prevent accidental Pi interruptions by requiring three Esc presses, each within one second of the previous press.

Highlights

  • On-demand English counter: hidden until the first Esc press.
  • First two presses are swallowed; the third uses Pi's native interrupt handling.
  • Counter resets and disappears on timeout, another key, or the end of an agent run.
  • Idle Esc behavior and Ctrl+C remain unchanged.
  • Kitty key releases and held-key repeats are ignored.

Install

pi install npm:pi-escape-guard

Then run /reload or restart Pi. Disable any existing local copy first to avoid duplicate input handlers.

Validation

  • 9 tests passed, including native Pi extension loading.
  • npm tarball contents verified (5 files).

This tag matches the source published as pi-escape-guard@0.1.0. Subsequent repository metadata, documentation, and CI setup are on main.

npm package