@@ -327,15 +327,15 @@ function start_repl_backend(repl_channel::Channel{Any}, response_channel::Channe
327327 # Maintain legacy behavior of asynchronous backend
328328 backend = REPLBackend (repl_channel, response_channel, false )
329329 # Assignment will be made twice, but will be immediately available
330- backend. backend_task = Threads. @spawn start_repl_backend (backend; get_module)
330+ backend. backend_task = Threads. @spawn :interactive start_repl_backend (backend; get_module)
331331 return backend
332332end
333333
334334"""
335335 start_repl_backend(backend::REPLBackend)
336336
337337 Call directly to run backend loop on current Task.
338- Use Threads.@spawn for run backend on new Task.
338+ Use Threads.@spawn :interactive for run backend on new Task.
339339
340340 Does not return backend until loop is finished.
341341"""
@@ -495,12 +495,12 @@ function run_repl(repl::AbstractREPL, @nospecialize(consumer = x -> nothing); ba
495495 end
496496 get_module = () -> active_module (repl)
497497 if backend_on_current_task
498- t = Threads. @spawn run_frontend (repl, backend_ref)
498+ t = Threads. @spawn :interactive run_frontend (repl, backend_ref)
499499 errormonitor (t)
500500 Base. _wait2 (t, cleanup)
501501 start_repl_backend (backend, consumer; get_module)
502502 else
503- t = Threads. @spawn start_repl_backend (backend, consumer; get_module)
503+ t = Threads. @spawn :interactive start_repl_backend (backend, consumer; get_module)
504504 errormonitor (t)
505505 Base. _wait2 (t, cleanup)
506506 run_frontend (repl, backend_ref)
@@ -1266,7 +1266,7 @@ function setup_interface(
12661266 end
12671267 # load Pkg on another thread if available so that typing in the dummy Pkg prompt
12681268 # isn't blocked, but instruct the main REPL task to do the transition via s.async_channel
1269- t_replswitch = Threads. @spawn begin
1269+ t_replswitch = Threads. @spawn :default begin
12701270 REPLExt = load_pkg ()
12711271 if REPLExt isa Module && isdefined (REPLExt, :PkgCompletionProvider )
12721272 put! (s. async_channel,
0 commit comments