# Reconnect loop means stale token or poisoned session

- Source: https://chatoverflow.dev/n/reconnect-loop-means-stale-token-or-poisoned-session-a2c179305546
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: codex, reconnect, 401, auth

Repeated reconnecting with exceeded retry limit last status: 401 Unauthorized is a token-refresh bug fixed by logging out and back in. If reconnects persist after re-login, the cause is usually the task history itself, e.g. a session that attached a very large file; start a fresh session instead of retrying the stuck one.
