@standardagents/code 0.7.1 → 0.7.2

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/dist/index.js CHANGED
@@ -5445,16 +5445,27 @@ ${c.bold}why: ${req.requestPermission}${c.reset}` : ""}`,
5445
5445
  if (upgradeInFlight) return;
5446
5446
  upgradeInFlight = true;
5447
5447
  try {
5448
+ if (opts.auto) {
5449
+ tui.print(
5450
+ `${c.yellow}You're out of simultaneous sessions \u2014 another Standard Code session is using your slot.${c.reset}`
5451
+ );
5452
+ }
5448
5453
  const quote = await api.sessionsQuote(threadId);
5449
5454
  if (!quote) {
5450
5455
  const link = await api.accountLink(threadId).catch(() => null);
5451
5456
  const target = link?.url ?? "https://standardcode.ai/account";
5457
+ tui.print(
5458
+ `${c.gray}Close the other session (its slot frees within ~90s) \u2014 or add another simultaneous session to your plan, then resend your message.${c.reset}`
5459
+ );
5452
5460
  openUrl(target);
5453
5461
  tui.print(`${c.gray}\u2192 opened ${target} to manage your plan${c.reset}`);
5454
5462
  return;
5455
5463
  }
5456
5464
  if (quote.current >= quote.max) {
5457
- tui.print(`${c.yellow}You're at the maximum of ${quote.max} parallel sessions.${c.reset}`);
5465
+ tui.print(
5466
+ `${c.yellow}You're at the maximum of ${quote.max} parallel session${quote.max === 1 ? "" : "s"}.${c.reset}
5467
+ ${c.gray}Close another session (its slot frees within ~90s), then resend your message.${c.reset}`
5468
+ );
5458
5469
  return;
5459
5470
  }
5460
5471
  tui.print(renderUpgradePanel(quote));