@sherif-fanous/pi-presets-plus 0.1.1 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This changelog follows [Common Changelog](https://common-changelog.org/).
4
4
 
5
+ ## [0.1.2] - 2026-05-09
6
+
7
+ ### Fixed
8
+
9
+ - Pressing `c` (clear) inside the preset picker with no preset active no longer opens an empty confirm-then-nothing dialog. The picker now shows an info-dialog stating "No preset is active." and returns to the picker.
10
+ - The session-start notification for a preset that shadows a Pi built-in now uses warning severity to match the visual treatment of preset-vs-preset hotkey conflicts. Both collision-style notifications render consistently.
11
+
5
12
  ## [0.1.1] - 2026-05-09
6
13
 
7
14
  ### Changed
@@ -12,5 +19,6 @@ This changelog follows [Common Changelog](https://common-changelog.org/).
12
19
 
13
20
  _Initial release._
14
21
 
22
+ [0.1.2]: https://github.com/sherif-fanous/pi-presets-plus/releases/tag/v0.1.2
15
23
  [0.1.1]: https://github.com/sherif-fanous/pi-presets-plus/releases/tag/v0.1.1
16
24
  [0.1.0]: https://github.com/sherif-fanous/pi-presets-plus/releases/tag/v0.1.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sherif-fanous/pi-presets-plus",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Pi extension: model + thinking + tools + system-prompt presets, with a UI on top.",
5
5
  "keywords": [
6
6
  "pi",
@@ -88,7 +88,7 @@ export class HotkeyRegistry {
88
88
  if (isPiBuiltin(parsed)) {
89
89
  ctx.ui.notify(
90
90
  `${formatPresetSubject(preset)} hotkey "${preset.hotkey}" shadows a Pi built-in. The preset binding will take precedence.`,
91
- "info",
91
+ "warning",
92
92
  );
93
93
  }
94
94
 
package/src/ui/picker.ts CHANGED
@@ -287,6 +287,19 @@ class PresetPickerComponent implements Component, Focusable {
287
287
  return;
288
288
  }
289
289
 
290
+ if (!this.session.current()) {
291
+ await this.runWithHiddenOverlay(() =>
292
+ openInfoDialog(this.ctx, {
293
+ body: "No preset is active.",
294
+ title: "Clear Unavailable",
295
+ // No active preset is a normal empty state, unlike missing Pi API.
296
+ tone: "info",
297
+ }),
298
+ );
299
+
300
+ return;
301
+ }
302
+
290
303
  const confirmed = await this.runWithHiddenOverlay(() =>
291
304
  openConfirm(
292
305
  this.ctx,