`/login` and `/mcp` auth modals freeze inside `--resume` sessions
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:
claude --permission-mode plan --worktree --resume- Pick any prior session
- Type
/login, complete the browser auth flow - Terminal shows
Login successful. Press Enter to continue…(withEsc to cancelunderneath) - 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 planin /tmp — works - Fresh
claude --permission-mode planin a real git repo (no--worktree) — works - Fresh
claude --permission-mode plan --worktreein a tiny throwaway repo — works - Fresh
claude --permission-mode plan --worktreein a large (~500MB) monorepo — works
The trigger is specifically --resume + the OAuth-callback "Press Enter to continue" modal.
Workaround (validated):
- Fresh
claude --permission-mode plan --worktree(no--resume) - Run
/loginand any/mcpauth/enable/disable inside that fresh session - Run
/resumeafterwards and pick up the prior conversation - Both
/loginand/mcpmodals 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.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗