This is actually a bug - the Typed String condition only works if it is in the top level action list.
This is why it works in @Airy’s version - all the actions are at the top level. It fails when the actions are nested within any other action.
Fixed for the next version.