Client Script Not Updating After bench migrate - Is This Expected?

I noticed an issue where client script changes made through the Desk UI seem to take precedence over changes made in the code. Here’s what happened:

  1. A client script was modified directly in the Desk UI.
  2. After some time, I updated the same client script in the codebase and ran bench migrate.
  3. Despite running bench migrate, the updates made in the code are not reflecting in the system.

Is this behavior expected? Does modifying a client script via the Desk UI override code-based updates permanently? Or is there a way to ensure changes from the code are reflected after running bench migrate?

Looking for clarity or a workaround on this!

If not applied then apply it.

bench build

// OR

bench build --force