@pi-unipi/compactor 2.2.0 → 2.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/compactor",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Context engine for Pi — zero-LLM compaction, session continuity, sandbox execution, and tool display optimization",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@pi-unipi/core": "2.2.0",
38
- "@pi-unipi/info-screen": "2.2.0",
38
+ "@pi-unipi/info-screen": "2.2.1",
39
39
  "@earendil-works/pi-agent-core": "^0.80.0"
40
40
  },
41
41
  "peerDependencies": {
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  import type { Component, TUI } from "@earendil-works/pi-tui";
11
- import { truncateToWidth, visibleWidth, SettingsList, type SettingItem, type SettingsListTheme } from "@earendil-works/pi-tui";
11
+ import { matchesKey, truncateToWidth, visibleWidth, SettingsList, type SettingItem, type SettingsListTheme } from "@earendil-works/pi-tui";
12
12
  import type { Theme, KeybindingsManager } from "@earendil-works/pi-coding-agent";
13
13
  import { loadConfig, saveConfig, projectConfigPath } from "../config/manager.js";
14
14
  import { applyPreset, detectPreset } from "../config/presets.js";
@@ -566,7 +566,7 @@ export class CompactorSettingsOverlay implements Component {
566
566
  }
567
567
 
568
568
  // Escape cancels (but SettingsList also handles it, calling onCancel)
569
- if (data === "\x1b") {
569
+ if (matchesKey(data, "escape")) {
570
570
  this.onClose?.();
571
571
  return;
572
572
  }