It seems that no environment variables are saved between commands.
You can confirm this with any bash export command.
For now, I we can only wait until environment variables are supported.
I guess the smart features rely on some environment variables not being too weird.
(PS1 or PROMPT_COMMAND comes to mind)