A Bug With Sliding Time Stretch When Selecting Track Audio

Has anyone else experienced this?
I don’t know when it started happening, but since Audacity version 3.something, there’s been a longstanding bug in the sliding time stretch plugin that doesn’t update the new track length properly as changing speed and tempo does.
Steps to reproduce:

  1. Open audacity.
  2. Import a file into audacity, like a musical loop.
  3. Click new from the file menu.
  4. Open a different musical loop into another audacity project.
  5. Select the new loop, preferably in a different pitch and tempo.
  6. Copy the entire loop.
  7. Go back to the other loop project window.
  8. Click on new stereo track under tracks within the original loop window you imported before.
  9. Once it appears, paste in the selected loop from the other project.
    Now you should have both loops positioned at start.
    Next, follow these steps.
  10. Select only the second loop or first loop.
  11. Go to effects, and click on time stretch.
  12. Match the tempo or pitch as best as you can with the other loop.
  13. Wait for the process to complete.
    Once it does, you will notice there is a problem when playing the two loops together.
    If you selected, for instance, a loop with 4 bars instead of 2 for instance, but they weren’t exactly the same tempo. And you decided to make say, the 2 bar loop the same tempo as the 4 bar one, notice the effect doesn’t update the new track length limit. It remains the same as the imported audio.
    This can be confirmed if you go to effects, click on repeat, and watch the loop not exactly align with the new tempo you selected for it under the sliding time stretch effect.
    In previous versions of audacity, the track length limit was synchronized with the sliding time stretch effect. But in audacity version 3.5.1, 3.5, 3.4.2 and a few other older versions, this bug has existed for awhile.
    By contrast, when changing tempo through the change tempo and change speed effect, the track length is properly updated. Where in if you click on repeat, it will repeat with the end of the selected track matching where the track length ended, as opposed to its original allocated space within the window.
    As far as I know, this happens across all operating systems. I tested this on Windows 11, Windows 10 and Ubuntu Linux. And I got the same result.
    I use the sliding time stretch effect for high quality adjustments automatically to desired speed and pitch. As opposed to manually adjusting one or the other. Automatic tempo detection does not help in this regard.
    I’m curious if anyone else has noticed this?