Deleted the app at day 340 and the habit survived, which told me what the streak had actually been doing: nothing, for a long time.
The streak is useful in the first few weeks when the behaviour is not automatic yet. After that it is a second habit sitting on top of the first, and the second one is easier and more satisfying, which is exactly why it takes over.