See title.
If you create a function that both teleports the player away, and plays a sound at the new location, the sound is played, but no subtitle shows.
Steps to reproduce:
Create a data pack with a function containing
teleport @s ~ ~50 ~ execute at @s run playsound minecraft:entity.arrow.hit_player master @s ~ ~ ~ 1
Enable subtitles in the settings and make sure master slider is turned on
Run the playsound command by itself
/playsound minecraft:entity.arrow.hit_player master @s ~ ~ ~ 1
Observe how the subtitle shows up
Run the function
/function <name you gave the file>
Notice how you hear the sound, but no subtitle shows up
Linked issues
relates to 1
Attachments
Comments 3

I can confirm this behavior in 1.19.1.
To make life much easier and to take away the trouble of creating a datapack in order to reproduce this, I've created one myself so you don't have to. In order to recreate the problem here, simply download the attached datapack and create a new world using it. Upon entering the world, you'll be prompted with the steps you need to take in order to reproduce the problem. Simply run the "mojira:mc-212023" function and observe the issue.