testsAndMisc/linux_configuration/zsh
Krzysztof kuhy Rudnicki 4be57f0996
Some checks are pending
Pre-commit checks / pre-commit (push) Waiting to run
feat(zsh): add claude() wrapper to survive early terminal input
Typing during Claude Code's ~5s startup triggered a SIGTTIN job-control
stop ("suspended (tty input)") that left mouse tracking / terminal probes
enabled, spamming SGR mouse (35;44;41M) and DSR (997;1n) sequences.
Upstream bug, closed "not planned" (anthropics/claude-code #7807 #11898
#23581 #50032); no flag/env disables the probes.

Wrapper runs claude with job-control monitoring off (nomonitor) so it
can't take SIGTTIN, and resets mouse/focus/paste/cursor modes to /dev/tty
on exit as a self-heal. Opt-out via CLAUDE_TTY_FIX_OFF=1. Auto-loaded via
an oh-my-zsh custom symlink (same pattern as calc-live.zsh); .zshrc
untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012fwBQdNPJPgKR3gcDZLRjo
2026-07-18 05:53:16 +02:00
..
scratchpad refactor: extract all inline Python from shell scripts into proper .py files 2026-06-06 10:31:48 +02:00
calc-live.zsh refactor: extract all inline Python from shell scripts into proper .py files 2026-06-06 10:31:48 +02:00
calc-popup.sh refactor: extract all inline Python from shell scripts into proper .py files 2026-06-06 10:31:48 +02:00
claude-tty-fix.zsh feat(zsh): add claude() wrapper to survive early terminal input 2026-07-18 05:53:16 +02:00