Original Reddit post

Currently in East Asia. First wave of attacks were yesterday. Flight was tonight. Understandable absurd wait times on the phone and live chat. Thought I’d try Claude Code + Chrome to wait for a human and send a message to re-book my flight. TL;DR: Ran into rate limits because of the “wait for a human” portion of my use case. CC successfully starts the Live Chat support and sends the initial message. First trial. Asked it to wait for human agent and rebook Started with a simple prompt. My full name, and flight PNR and details about the disruption. For the first run, CC ran for 12m 45s till it stopped. Somehow it decided to hold off on unlimited loop. Interesting. CC ended the loop with a nice message, asking me to either wait wait, contact them by phone or the last option; waiting again. I figured that Claude Code takes a screenshot every 30 seconds and checks if someone responded. The screenshot is a base64 image that gets sent over to the model. I’m using Sonnet for this use case. Each wait costed about 100 to 200 tokens to wait 30 seconds. At times Claude would say, “Still waiting in queue — no consultant yet. The wait is likely very long due to the flight disruption affecting many passengers. I’ll keep monitoring and will immediately respond when a consultant connects.” Second trial. Rate limit reached, API stopped responding I restarted the whole process again. No one had connected anyway. CC would disconnect after 21 minutes or 5 minutes. And then I hit the rate limit. Checking the context, showed it had filled it up with logs about the past 2 hrs of my trials! Latest Status : Wrote a console script that triggers a sound when a human joins chat. I wonder is there a way to “wait” locally without hitting Claude API? After trigger (human agent joins chat), CC Sonnet API takes over. Excited to see CC + Chrome work for use cases where playwright or related tools may not work. submitted by /u/gob_magic

Originally posted by u/gob_magic on r/ClaudeCode