Agent scripting dynamic variable sync issue

I can’t seem to figure out why the dynamic variables in my agent script are not updating when i change the flow data. coming from zendesk macros, i expected this to be seamless. the script shows stale data even after a hard refresh. i am using the standard architect flow with a set variable action. is there a caching layer i am missing or a specific api call to force a script reload?