[Bug] Session enters unrecoverable interrupt loop and hangs after git operations

Resolved 💬 3 comments Opened Mar 19, 2026 by FrankleFry1 Closed Mar 23, 2026

Bug Description
Feedback for Claude Code — Two Reproducible Session Bugs (March 19, 2026)
Environment: Claude Code CLI, Linux (Ubuntu), DAW / Inspiron 7786, clearpath-pa project, pushing to GitHub via HTTPS.

Bug 1: Spontaneous "Interrupted · What should Claude do instead?" loop
Mid-task, with no user input (no Esc, no Ctrl+C), Claude Code enters a broken interrupt loop. Typing "continue" immediately produces another "Interrupted" with no progress. The only recovery is killing the session entirely. This occurred during a multi-file edit + git push task on March 18–19, coinciding with the elevated-error incidents on status.claude.com. This matches GitHub issue #21477 ("Recurring 'Request interrupted by user' errors during normal operations"). The abort state appears to persist in session memory after a failed API call and does not self-clear.
Bug 2: Session hangs unresponsive after successful git push
After git push origin main completes successfully (commit lands on remote, confirmed), Claude Code freezes — spinner stops, input is blocked, Esc/Ctrl+C do not recover it. The push itself works. This matches GitHub issue #20278 ("Session hangs in 'Architecting' state after completing git operations") and is likely related to issue #16306 (stdin left open after Bash tool execution). Suspected cause: git push over HTTPS probes /dev/stdin for credentials even when not needed, leaving stdin open and blocking the Bash tool's completion signal.
Suggested fix direction for Bug 2: Injecting < /dev/null when Claude Code constructs git push Bash calls would close stdin preemptively and likely eliminate the hang.
Both bugs are session-breaking for long agentic tasks. Please reference issues #21477, #20278, and #16306.

Environment Info

  • Platform: linux
  • Terminal: gnome-terminal
  • Version: 2.1.79
  • Feedback ID: 274cbf79-3968-4703-89ad-a72a45e94b9b

Errors

[]

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗