pi-extended-teams 2.2.9 → 2.2.10

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,6 +446,7 @@ export function createAgentFollowComponent(
446
446
 
447
447
  const recipient = agent.name;
448
448
  sendingMessage = true;
449
+ messageInput.setValue("");
449
450
  messageStatus = `Sending to ${recipient}…`;
450
451
  tui.requestRender();
451
452
  void Promise.resolve()
@@ -455,6 +456,7 @@ export function createAgentFollowComponent(
455
456
  stopComposingMessage();
456
457
  })
457
458
  .catch((error: unknown) => {
459
+ if (composingMessage) messageInput.setValue(value);
458
460
  messageStatus = error instanceof Error ? error.message : `Could not message ${recipient}.`;
459
461
  tui.requestRender();
460
462
  })
@@ -742,6 +744,10 @@ export function createAgentFollowComponent(
742
744
  done();
743
745
  return;
744
746
  }
747
+ if (sendingMessage) {
748
+ if (matchesKey(data, Key.escape)) stopComposingMessage();
749
+ return;
750
+ }
745
751
  messageInput.handleInput(data);
746
752
  tui.requestRender();
747
753
  return;
@@ -760,7 +766,7 @@ export function createAgentFollowComponent(
760
766
  tui.requestRender();
761
767
  return;
762
768
  }
763
- if (data.toLowerCase() === "m" && options.sendMessage) {
769
+ if (data.toLowerCase() === "m" && options.sendMessage && !sendingMessage) {
764
770
  composingMessage = true;
765
771
  messageStatus = "";
766
772
  syncInputFocus();
@@ -49,7 +49,11 @@ function displayLabel(extension: SpawnExtensionCandidate): string {
49
49
  const normalized = extension.path.replace(/\\/g, "/");
50
50
  const base = normalized.split("/").pop() || normalized;
51
51
  if (/^index\.(?:ts|js|mjs|cjs)$/.test(base)) {
52
- return normalized.split("/").at(-2) || normalized;
52
+ const segments = normalized.split("/");
53
+ const parent = segments.at(-2);
54
+ return parent === "src" || parent === "extensions"
55
+ ? segments.at(-3) || normalized
56
+ : parent || normalized;
53
57
  }
54
58
  return base;
55
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-extended-teams",
3
- "version": "2.2.9",
3
+ "version": "2.2.10",
4
4
  "description": "Control-first, session-connected subagents for Pi with live navigation and intent-tier routing",
5
5
  "repository": {
6
6
  "type": "git",