[Bug] Focus reporting mode (ANSI 1004) not disabled on exit
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 5 comments · opened Jan 9, 2026 · 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 ↗