@hienlh/ppm 0.9.37 → 0.9.38

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.38] - 2026-04-06
4
+
5
+ ### Fixed
6
+ - **Stream hangs 3 minutes after AI finishes**: `done` event was received but the `for-await` loop didn't break — `break` inside `switch` only exits the switch, not the loop. Used labeled `break eventLoop` to properly terminate on `done`.
7
+
3
8
  ## [0.9.36] - 2026-04-06
4
9
 
5
10
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hienlh/ppm",
3
- "version": "0.9.37",
3
+ "version": "0.9.38",
4
4
  "description": "Personal Project Manager — mobile-first web IDE with AI assistance",
5
5
  "author": "hienlh",
6
6
  "license": "MIT",
@@ -151,7 +151,7 @@ export async function streamToTelegram(
151
151
  // Process event stream with per-event timeout
152
152
  let eventCount = 0;
153
153
  try {
154
- for await (const event of withEventTimeout(events, EVENT_TIMEOUT_MS)) {
154
+ eventLoop: for await (const event of withEventTimeout(events, EVENT_TIMEOUT_MS)) {
155
155
  eventCount++;
156
156
  // Debug: log each event type to help diagnose streaming issues
157
157
  if (event.type !== "text") {
@@ -207,7 +207,7 @@ export async function streamToTelegram(
207
207
  case "done": {
208
208
  result.contextWindowPct = event.contextWindowPct;
209
209
  result.resultSubtype = event.resultSubtype;
210
- break;
210
+ break eventLoop; // break the for-await, not just the switch
211
211
  }
212
212
 
213
213
  case "session_migrated": {