pi-cc-extensions 0.5.0 → 0.5.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.
@@ -446,14 +446,16 @@ function handleToolMouseInput(data: string): { consume: true } | undefined {
446
446
  const packets = parseSgrMousePackets(data);
447
447
  if (!packets) return undefined;
448
448
 
449
+ let consumed = false;
449
450
  for (const packet of packets) {
450
- if (isSgrLeftPress(packet)) {
451
- toggleToolAtMouseClick(toolMouseTui, packet);
451
+ if (isSgrLeftPress(packet) && toggleToolAtMouseClick(toolMouseTui, packet)) {
452
+ consumed = true;
452
453
  }
453
454
  }
454
- // The default editor cannot interpret mouse escape sequences. Consume them
455
- // even when the click was outside a tool result.
456
- return { consume: true };
455
+
456
+ // Let scrolling, motion, release, and clicks outside tool results reach the
457
+ // normal TUI input chain (including other extensions such as pi-zentui).
458
+ return consumed ? { consume: true } : undefined;
457
459
  }
458
460
 
459
461
  function teardownToolMouseInteraction(): void {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-cc-extensions",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Personal extensions for the Pi coding agent",
5
5
  "type": "module",
6
6
  "keywords": [