@kenkaiiii/ggcoder 5.51.1 → 5.51.3

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.
@@ -3526,6 +3526,13 @@ async function createSession(deps, opts) {
3526
3526
  json(res, 400, { error: "empty prompt" });
3527
3527
  return;
3528
3528
  }
3529
+ // A typed prompt supersedes any question parked on the user: they
3530
+ // answered with a message of their own. Release the blocked tool call
3531
+ // NOW — otherwise it waits out its ten-minute timeout while this very
3532
+ // message sits behind it as steering that only drains once the tool
3533
+ // returns, so the turn looks frozen. The webview closes the band on
3534
+ // send; a racing /ask POST just 409s.
3535
+ asks.cancelAll({ action: "cancel", superseded: true });
3529
3536
  if (runLifecycle.running &&
3530
3537
  runLifecycle.isCancellationRequested(runLifecycle.generation)) {
3531
3538
  json(res, 409, {