pi-crew 0.9.24 → 0.9.25

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-crew",
3
- "version": "0.9.24",
3
+ "version": "0.9.25",
4
4
  "description": "Pi extension for coordinated AI teams, workflows, worktrees, and async task orchestration",
5
5
  "author": "baphuongna",
6
6
  "license": "MIT",
@@ -817,6 +817,14 @@ export async function executeTeamRun(input: ExecuteTeamRunInput): Promise<{ mani
817
817
  // final buffered progress events are durable alongside the failure state.
818
818
  await flushEventLogBuffer();
819
819
  return result;
820
+ } finally {
821
+ // M7+follow-up (v0.9.24): drain buffer on the success path too.
822
+ // Previously only the catch path flushed; under --test-force-exit the
823
+ // success path left pending appendEventAsync promises that the test
824
+ // runner detected as 'Promise resolution is still pending'. The catch
825
+ // still has its own flush for M7 backward compat — flushEventLogBuffer
826
+ // is idempotent on an empty queue.
827
+ await flushEventLogBuffer();
820
828
  }
821
829
  }
822
830