Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.
Shell agent-teamsai-agentai-automationanthropicautonomous-agentawsbusiness-operationsclaudeclaude-codeclaude-code-plugindevopsecommerceinbox-zeroklaviyomarketingmcpmorning-briefingpr-automationshopifyterminal
Wait for all bootstrap tabs to close before exiting MCP reauth
Cursor Agent038176fe3701
diff --git a/claude-ops/scripts/ops-mcp-reauth.py b/claude-ops/scripts/ops-mcp-reauth.pyindex 6e7c7f2e..f953c3ba 100755--- a/claude-ops/scripts/ops-mcp-reauth.py+++ b/claude-ops/scripts/ops-mcp-reauth.py@@ -259,11 +259,22 @@ def main() -> int:except Exception as e:log(f"failed to load {u}: {e}")pages.append(pg)- # Block until user closes the LAST page (or 10 min hard cap)- try:- pages[-1].wait_for_event("close", timeout=600_000)- except Exception:- pass+ # Block until every bootstrap tab is closed (or 10 min total hard cap).+ # Waiting only on the last-opened tab exits early if the user closes+ # tabs in a different order, tearing down the context while other+ # sign-ins are still in progress.+ deadline = time.monotonic() + 600+ while True:+ open_pages = [p for p in pages if not p.is_closed()]+ if not open_pages:+ break+ remaining_ms = int(max(0, (deadline - time.monotonic()) * 1000))+ if remaining_ms <= 0:+ break+ try:+ open_pages[0].wait_for_event("close", timeout=remaining_ms)+ except Exception:+ breakreturn 0url = sys.argv[1]