Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene“ Scene
3. Open the “Assets/Clip” Animation clip with the Animation window
4. Lock the Animation window by clicking the Lock button
5. In the Hierarchy window, select the “AnimationEditor“ GameObject
6. In the Inspect window, open the context menu of the “Animation Editor (Script)” Component and select “Execute”
7. In the Animation window, observe the Animation clip Position.x value
8. Select Curves mode and observe the Animation clip Position.x value again
Expected result: The Position.x value is updated as soon as the script is executed, so the values in steps 7 and 8 are the same
Actual result: The value only gets updated after switching the timeline view mode
Reproducible with: 2021.3.35f1, 2022.3.20f1, 2023.2.10f1, 2023.3.0b7
Reproducible on: Windows 11
Not reproducible on: No other environment tested