We can use write_screen_file action to see past terminal output.
https://ghostty.org/docs/config/keybind/reference#write_screen_file
Currently, write_screen_file:open uses the OS default open command, which launches TextEdit.app in macOS.
As a terminal enthusiast, I would prefer to use a text editor directly within the terminal.