As previously discussed in #17183 It would be great if the repl variables implementation is also carried over to the Terminal REPL not Just the REPL Window.