@henryqw/pi-herdr-tools 1.3.2 → 1.3.3

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.
@@ -394,7 +394,8 @@ export default function herdrRenameExtension(pi: ExtensionAPI): void {
394
394
  });
395
395
 
396
396
  pi.on("before_agent_start", (event, ctx) => {
397
- if (automaticStarted || !automaticPending || !event.prompt.trim()) return;
397
+ // Runs started by a custom message have no prompt; wait for the user prompt run.
398
+ if (automaticStarted || !automaticPending || !("prompt" in event) || !event.prompt.trim()) return;
398
399
  automaticPending = false;
399
400
  automaticStarted = true;
400
401
  latestUserText = event.prompt.slice(0, MAX_MESSAGE_CHARS);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-herdr-tools",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Clone, name, and finish Pi conversations in Herdr, with mergeable side questions.",
5
5
  "keywords": ["pi-package", "pi", "herdr", "session", "clone", "side-thread", "title"],
6
6
  "type": "module",