I ran into the same issue in my project, and after debugging, I traced it back to a regression in compose-multiplatform-core.
The root cause is documented in this pull request:
- https://github.com/JetBrains/compose-multiplatform-core/pull/1818
Upgrading the Compose Multiplatform plugin to version 1.8.0 resolves the issue, as the fix has been included in that release.