Auto-continue after usage-limit reset (2.1.234+) doesn't fire in a detached tmux session
Status Open
Reported on v2.1.234
Maintainer reply None cached
Activity 1 comment · opened Sep 2, 2026
What's Wrong?
Claude Code 2.1.234 added: "Claude Code now continues your session automatically when a claude.ai usage limit resets" (on by default, /config → "Continue automatically at usage limit"). This does not fire for a session running inside a detached tmux pane — i.e. the process is alive and the pane exists, but no client has tmux attach-ed to it.
Steps to Reproduce
- Run
claudeinside a tmux session kept alive by a systemd--userservice (ExecStart=tmux new-session ...), with nobody attached to the tmux client. - Let the session hit its usage limit mid-task.
- Wait past the printed reset time.
- Observe: the pane still shows the "You've hit your session limit · resets HH:MM" banner and an idle prompt, hours after reset.
What I checked before filing
- Reset time had passed by 13+ hours — not a timing/clock issue.
- Underlying process confirmed alive and previously active (
psshowed real elapsed/CPU time, not hung or crashed). - Sent input directly into the pane via
tmux send-keys(a no-op keypress, then a character+backspace) to rule out "only rechecks on next render" — no change, banner persisted identically. claude --version→ 2.1.236 (newer than the 2.1.234 floor; alreadyapt's latest candidate).- No override in
settings.json— default (on) applies.
What Should Happen
Per the 2.1.234 changelog entry, the session should resume on its own once the limit resets, regardless of whether a tmux client is attached.
Suspected Cause
The resume check may be gated on an attached-client render/focus event rather than a real background timer, so a detached-but-alive pty never re-triggers it.
Environment
- Claude Code 2.1.236, installed via the
aptpackage on Raspberry Pi (Debian, arm64) - Session launched as
claude --name X --resume <session-id>insidetmux new-session, itself started by a systemd--userunit - No client ever attached to the tmux session (headless, managed via Claude Code's own Remote Control instead)
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗