I would love if asciinema added the XTVERSION response (if any) from the terminal in the recording file. XTVERSION as documented by xterm:
CSI > Ps q
Ps = 0 ⇒ Report xterm name and version (XTVERSION). The
response is a DSR sequence identifying the version: DCS > |
text ST
My terminal (Ghostty) for example includes the full version string including the commit in this string so this would allow bug reports that share an asciinema file to have the exact version that reproduces it.
I think it should be straightforward to add. asciinema 3.0 already does something similar (querying for terminal theme, saving it in the file header) so this would be easy.
The new asciicast v3 file format includes term.version field, and the latest asciinema CLI saves the result of XTVERSION query there (not released yet, but in develop branch already).
The recording page in the asciinema server already exposes this information via a tooltip: