Static ISI does not insert custom code

I’m using Psychopy v2020.2.3 (as per psychopy.__version__, although I installed version v2021.1.3 from the Github releases page).

When I insert code in the $ Custom code field of a Static (isi) component, this code doesn’t show up in the compiled python script and I get an error for the code that depends on the code from the Static custom code field to be run. Is this a known bug?

Here is a minimal example psyexp file and the corresponding compiled script:
test_isi.psyexp (8.5 KB) (9.2 KB)

@dvbridges, could you perhaps help me because you were the last person to commit to the file that creates the Static component (psychopy/experiment/components/static/