
The issue occurs because Copilot agents cache the version of a Power Automate flow at publishing time. Even if you modify and save the flow in the Designer, the agent continues using the previously published version until the agent is republished. This leads to mismatches where manual flow tests reflect the latest changes, but agent-triggered runs execute outdated logic — causing unexpected behavior or errors from steps that were already removed.
For example, JSON or Compose action errors may appear because the agent is still invoking an older flow definition containing those actions.
Key fix steps: