`/login` and `/mcp` auth modals freeze inside `--resume` sessions

Status Fixed / completed
Reported on v2.1.119
Maintainer reply None cached
Activity 3 comments · opened Apr 27, 2026 · closed Apr 27, 2026

Bug: /login and /mcp auth modals freeze inside --resume sessions

Version: Claude Code 2.1.119 (Homebrew cask, macOS)
Terminal: Ghostty (reproduces with and without tmux)

Repro:

  1. claude --permission-mode plan --worktree --resume
  2. Pick any prior session
  3. Type /login, complete the browser auth flow
  4. Terminal shows Login successful. Press Enter to continue… (with Esc to cancel underneath)
  5. Enter and Esc are both ignored. Force-quit is the only escape.

Same freeze happens with /mcp auth flows once a server prompts for a browser callback.

Negative cases (do NOT reproduce):

  • Fresh claude --permission-mode plan in /tmp — works
  • Fresh claude --permission-mode plan in a real git repo (no --worktree) — works
  • Fresh claude --permission-mode plan --worktree in a tiny throwaway repo — works
  • Fresh claude --permission-mode plan --worktree in a large (~500MB) monorepo — works

The trigger is specifically --resume + the OAuth-callback "Press Enter to continue" modal.

Workaround (validated):

  1. Fresh claude --permission-mode plan --worktree (no --resume)
  2. Run /login and any /mcp auth/enable/disable inside that fresh session
  3. Run /resume afterwards and pick up the prior conversation
  4. Both /login and /mcp modals work normally inside the resumed session afterwards

That suggests the resumed-session input loop isn't wired to receive the modal's Enter event on first OAuth-callback-modal invocation, but works once the modal handler has been established in some other session.

Hooks present (PreToolUse, PostToolUse) are unrelated — neither fires on /login. chrome-devtools-mcp --autoConnect (a known deadlock source) was already removed before this repro.

View original on GitHub ↗

3 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/53035
  2. https://github.com/anthropics/claude-code/issues/45875
  3. https://github.com/anthropics/claude-code/issues/53227

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

luphaz · 5 months ago

Duplicate of #53035 (same root cause: /mcp and /login modals freeze inside --resume sessions). Cross-linking — also relevant: #45875 covers the standalone "Hit Enter to continue" failure surface. Closing in favour of #53035.

github-actions[bot] · 5 months 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.