[Bug] Focus reporting mode (ANSI 1004) not disabled on exit
Resolved 💬 5 comments Opened Jan 9, 2026 by BitYoungjae Closed Mar 19, 2026
Focus reporting mode (ANSI 1004) not disabled on exit.
Symptom: After exiting Claude Code, Ghostty terminal gets focus-locked on Hyprland. Mouse cannot leave window, cannot switch focus to other windows.
Cause: Claude Code enables focus reporting (\e[?1004h) but doesn't disable it (\e[?1004l) on exit (normal or crash).
Workaround: Run printf '\e[?1004l' after exit, or wrap claude command:
claude() { command claude "$@"; printf '\e[?1004l'; }
Related: #10375
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗