24-bit color not working with GitHub action
I have a workflow set up on a repo I'm working on for automatically generating up-to-date gifs using the vhs GitHub action. However, it seems that 24-bit color is not working as expected.
I set up a minimal repo in order to reproduce the issue, which uses neofetch in order to test 24-bit color output.
Here is the .tape file used:
Output demo.gif
Set Width 2000
Set Height 1200
Set FontSize 20
Type "neofetch"
Enter
Sleep 5s
Ctrl+D
This is the gif created by vhs:

The expected output would include two rows of colored squares at the bottom right. If I run vhs locally, everything works as expected.
I would greatly appreciate any kind of help!
I just realized that this issue might fit better at the charmbracelet/vhs-action repo. Please let me know if I should post it there instead!
I was looking at a similar problem running in Docker today. I found that I had to export COLORTERM=truecolor inside my tape for the app I was running to emit 24bit color instead of quantized 8bit. It looks like ttyd only sets TERM=xterm-256color by default but some color libs sniff for color support by looking at additional env values. I don't know if this will help your case or not, but you might look into this and similar terminal env values that might affect neofetch.