__EDIT__
for those reading, you can track other posts on this issue here:
the most detailed post in tips/tricks (this thread)
https://forums.cockos.com/showthread.php?t=252010
a bug report:
https://forum.cockos.com/showthread.php?t=273056
another bug report, from 2017:
https://forum.cockos.com/showthread.php?t=192204
a post in general:
https://forum.cockos.com/showthread.php?t=254798
a feature request:
https://forum.cockos.com/showthread.php?t=251752
a "why is this happening" thread:
https://forum.cockos.com/showthread.php?t=190663
a post in newbieland:
https://forum.cockos.com/showthread.php?t=274395
__END__
EDIT - this is not a bug, just a really weird default.
this relates to the "automation record return speed" parameter, which returns to the value at which the parameter originally was set. there's no way to disable the return.
--- original text ---
as far as i can tell, this bug prevents recording automation into AI from being useful without subsequent edits to correct a "surfing point"
1- set track envelope mode to latch
2- record a parameter curve pickup (before a looped section)
3- bug: a weird surfing envelope appears ahead of the play/latching cursor
4- bug: this creates an AI that does not end with the loop/time selection, as expected.
^ note that this "surfing point" == the param's position before you started latching.
this makes for a rude awakening if you're trying to latch in a filter sweep:
additional note: if you are already inside the loop when you begin latching, the AI that is created automatically fills the whole time selection. this solves the above problem, but points to another one: as far as i can tell, there's no way to avoid creating a time selection-wide AI if you're inside a TS.
but! this is a bummer if you're using your TS for render bounds for a mostly finished project. say you want to create a new envelope by latching in a param: you end up with project-wide AIs! amusingly, that was exactly what i wanted to avoid by using AIs in the first place.