← All guides

Codex stuck at Reconnecting 5/5 or disconnecting mid-response

Save progress, test a new chat, reopen the client and compare connections.

Updated

Start here

Start a new chat in the same project and send a short test. If it responds, continue there; otherwise reopen the client and check the connection.

On this page

1. Save progress

  1. Save edited files, note the task and error, and keep the old chat.
  2. If publishing or a data write was running, check its result before continuing.

2. Test a new chat

  1. Start a new chat in the same project; in the CLI chat box, use /new.
  2. Send the first line below. If it responds, fill in the short handoff and continue.
Reply only OK. Do not read files or use tools.

Continue this task:
Goal:
Completed work and files:
Remaining work:
Check the existing results before continuing.

3. Reopen the client

  1. Save your work, quit through the app menu and reopen it. For CLI, exit normally and run it again.
  2. Repeat the short message. If restored, try a small task before returning to the main work.

4. Compare the connection and error

  1. Try the same message on another trusted, available network. Use the working connection if it succeeds.
  2. For 401 errors, use the login guide; for context errors, use the context-window guide.

Login errors →

Context errors →

5. Contact support

  1. Send the client version, time, error screenshot and results from the new-chat and network tests.
  2. Hide account details so support can help investigate.

Contact support →

Useful links