summaryrefslogtreecommitdiff
path: root/config/hammerspoon/init.lua
diff options
context:
space:
mode:
authorIgor Soarez <igor@soarez.org>2026-09-25 13:49:05 +0300
committerIgor Soarez <igor@soarez.org>2026-09-25 13:49:05 +0300
commitb0714511e8557686cda9e0551324fd273a97e9b1 (patch)
treeab646a929fceaba34bb406f7b25d098a15d3032d /config/hammerspoon/init.lua
parented21d1270007a8f9cbaa2ca7da0fee1eefeb405f (diff)
profile: stop shadowing exit
`exit` was a function that ran `tmux detach` instead of exiting, whenever a shell was interactive and inside tmux. What it bought was a keystroke: tmux already binds detach to prefix-d, which this config does not touch. What it cost was an afternoon. Claude Code captures shell functions into a snapshot and sources it in every tool call, so agent shells inheriting $TMUX ran the function too: terminal windows closed on their own for weeks before anyone connected it to `exit`, and a poll loop that called `exit 0` detached a client every minute instead of stopping, because the function detached and then returned. The call-time guard added on 2026-07-16 fixed that case; it did not make shadowing a POSIX builtin a good idea. Nothing in either repo calls it and nothing documents the behaviour.
Diffstat (limited to 'config/hammerspoon/init.lua')
0 files changed, 0 insertions, 0 deletions