We have a patch here that was already requested to be merged: https://github.com/3v1n0/ghostty/commit/cc3b46f6001aa9539508a1e82ebb85a588c6c4f2 But the code requires some modifications to fit into our style and build better.