oira666_pi-subagent 0.7.4 → 0.7.5

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.
@@ -96,8 +96,9 @@ export function registerSubagentInterrupt(state: ExtensionState): void {
96
96
  state.pi.on("input", (event) => {
97
97
  const pending = state.pendingAutomaticResume;
98
98
  if (
99
+ pending &&
99
100
  event.source === "extension" &&
100
- event.text === pending?.prompt &&
101
+ event.text === pending.prompt &&
101
102
  pending.interruptEpoch !== (state.interruptEpoch ?? 0)
102
103
  ) {
103
104
  state.pendingAutomaticResume = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oira666_pi-subagent",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "Subagent extension for Pi coding agent. Delegate tasks to specialized agents.",
5
5
  "type": "module",
6
6
  "main": "index.ts",