@kenkaiiii/ggcoder 5.60.2 → 5.60.4

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.
@@ -4075,10 +4075,14 @@ async function createSession(deps, opts) {
4075
4075
  }
4076
4076
  // `false` means it already drained into the run between render and
4077
4077
  // click. That is a race, not an error, so report it as a normal result
4078
- // and let the client reconcile from the fresh list.
4078
+ // and let the client reconcile through the ordered event stream.
4079
4079
  const cancelled = session.cancelQueuedMessage(id);
4080
4080
  const queued = session.listQueuedMessages();
4081
- broadcast("queued", { count: queued.length, messages: queued });
4081
+ broadcast("queued", {
4082
+ count: queued.length,
4083
+ messages: queued,
4084
+ ...(cancelled ? { cancelledId: id } : {}),
4085
+ });
4082
4086
  json(res, 200, { cancelled, queued });
4083
4087
  });
4084
4088
  return;