atch preserves old terminal environment variables after reattaching from a newly started kitty instance.
This breaks kitty remote control integration because KITTY_LISTEN_ON inside the persistent shell still points to the old kitty socket from the previous terminal instance.
Reproduction
- Open kitty
- Create an
atch session:
- Verify kitty remote works:
- Close kitty completely
- Open a new kitty instance
- Reattach to the existing
atch session:
- Run:
Behavior
The shell inside the persistent atch session still contains the old KITTY_LISTEN_ON value from the previous kitty instance.
Example error:
Error: Failed to connect to unix:/tmp/kitty-52081 with error: dial unix /tmp/kitty-52081: connect: no such file or directory
Is this intended behavior?
Notes
This is reproducible consistently with:
- kitty
- fish shell
- Arch Linux
atchpreserves old terminal environment variables after reattaching from a newly started kitty instance.This breaks kitty remote control integration because
KITTY_LISTEN_ONinside the persistent shell still points to the old kitty socket from the previous terminal instance.Reproduction
atchsession:atch testkitty @ lsatchsession:kitty @ lsBehavior
The shell inside the persistent
atchsession still contains the oldKITTY_LISTEN_ONvalue from the previous kitty instance.Example error:
Is this intended behavior?
Notes
This is reproducible consistently with: