Agent is getting stuck during generation, burns API usage pretty quickly on retry

Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Activity 6 comments · opened Feb 25, 2025 · closed May 6, 2025
💡 Likely answer: A maintainer (bcherny, collaborator) responded on this thread — see the highlighted reply below.

Working on an app built entirely by CC. I am unable to work further, as any operation, even those with a cleared context will hang the tool in an analyzing state.

Running with debug and verbose flags, here's an example:

<img width="1255" alt="Image" src="https://github.com/user-attachments/assets/7db4d8fb-75ba-4993-b0fc-8965883fea47" />

Have tried setting the SHELL= prompt to bin/bash instead of zsh, no change in behavior.

Stopping and retrying seems to burn API spend quickly.

Running on OS X ARM

View original on GitHub ↗

6 Comments

bcherny collaborator · 1 year ago

Hi! Can you give a step-by-step repro? Does it consistently hang at a specific tool call, or are you saying the conversation hangs after a few calls?

jeremycyr-MK · 1 year ago

It seems to be related to something in my project state specifically, I can start a new project and not have this issue. Once I reach the issue, it will always hang on the next call, timer ticking up but nothing happening unless or until I clear the context. If I clear the context, it will get a couple searches into orienting around the project, and then hang like you see in the screenshot above. For this specific project, I can't continue to develop using CC because it hits something it cannot get past every time it orients.

It feels like it is searching and hitting something causing it to hang, but nothing in the -d --verbose output really gives a clue to what that is.

Step to repro:

  • Have my specific project code
  • /clear Context
  • Give an instruction
  • Wait for a couple calls to execute, tool will not return until eventually timing out.

Hope this helps, if you need any other specific info, let me know.

catherinewu contributor · 1 year ago

Hi @jeremycyr-MK, next time you have a session where this happens, could you run the /bug command to send us your chat transcript so we can look into it? Sorry that this is happening

jeremycyr · 1 year ago

Hi @catherinewu - │ Feedback ID: 00a83c62-8d6d-4c12-9b5c-1f1749a43dfe I let it run for a long time eventually it threw the error that you see at the end of the transcript, then spun for 15+ minutes, I finally interrupted it to submit the bug report. If I can provide any info, please let me know. No worries at all, I understand this is preview software.

bcherny collaborator · 1 year ago

This is fixed in more recent versions. Restart to update.

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.