(sbt:command "console") is non-blocking; subsequent comint-send-region calls will have no effect until the console is up. It is more consistent to require the console to be up and produce an error message if it is not instead of firing it up in the same command.