The command history is nice in the REPL, but it should probably have it's own. That goes for the tag repl and script repl. See if there is a way to switch out the history when the REPL starts and stops.
Is there a way to switch this?
Well, this is how the history object is set in ReaderFactory.cfc:
I don't see why we can't have a script and tag REPL history as well. Just flush, and switch the history objects when starting the REPL, and revert the history object when exiting the REPL command.
Tag and script REPL still share the same history which doesn't satisfy the ticket description. I can't think of any reason to share history between script and tag REPL.
Crap, I started on this too last night but forgot to reassign. I thought it would be a quick fix, but I didn't commit it because I ran into issues where the WireBox mapping was actually creating a new instance of the Java object every time I created it so clearing history, etc didn't actually work correctly. I'll look at what you did and see if it also has the same issue.