@arhen/pi-core-subagent 1.1.1 → 1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arhen/pi-core-subagent",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
5
  "description": "pi extension: fast in-process subagents with single/parallel/chain, background runs, intercom and agent-to-agent mailbox. Leader defines agents inline.",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -25,7 +25,7 @@ const DEFAULT_CONCURRENCY = 3;
25
25
  const MAX_CONCURRENCY = 8;
26
26
  const MAX_TASKS = 16;
27
27
  const DEFAULT_RUNTIME_MS = 10 * 60 * 1000;
28
- const DEFAULT_STALL_MS = 90_000;
28
+ const DEFAULT_STALL_MS = 180_000; // 3 min: long model thinking streams emit message_update, not message_end
29
29
  const THINKING_LEVELS = ["off", "minimal", "low", "medium", "high", "xhigh", "max"] as const;
30
30
  const READONLY_TOOLS = ["read", "grep", "find", "ls"];
31
31
  const WRITE_TOOLS = ["read", "grep", "find", "ls", "bash", "edit", "write"];
@@ -705,7 +705,7 @@ class SubagentManager {
705
705
  });
706
706
 
707
707
  unsubscribe = child.subscribe((event: AgentSessionEvent) => {
708
- const active = event.type === "message_end" || event.type === "tool_execution_start" || event.type === "tool_execution_end" || event.type === "agent_settled";
708
+ const active = event.type === "message_update" || event.type === "message_end" || event.type === "tool_execution_start" || event.type === "tool_execution_end" || event.type === "agent_settled";
709
709
  if (active) {
710
710
  watchdog.touch();
711
711
  this.emit("subagent:session-event", { runId: run.id, taskId: task.id, seq: eventSeq++, event: { type: event.type } });