The native feel and feature set is nice and all, but breaking ssh
sessions because of reporting itself as xterm-ghostty
and hoping it will be fixed by updating terminfo
(which will never happen on 99% of current systems) is not something that seems like a good idea.
My immediate workaround was to set term=xterm-256color
in the config file (there are other options in the documentation), but the real solution for me (after a little more weirdness) was to go back to WezTerm, which has the added benefits of having a Monokai Pro theme and supports Sixel graphics (because yes, there are legacy applications out there using those, and I happen to use them occasionally).
The fight between shiny new things and traditional software is never-ending, but I’m not going to be the one to debug terminal emulation bugs in 2024.