New console does not treat compilation failures as program termination

Bug description:
If compile fails, the console continues in run mode, which makes it hard to distinguish compiler errors from separate runs.

Steps to reproduce:

  1. Create a repl
  2. Add a compile-time error
  3. Try to run it
    Observe: console indicator remains green, runtime increases
  4. Run it again
    Observe: no new output entry(?) is created
  5. Click Clear console
    Observe: the console does absolutely nothing
  6. Remove the error from step 2 and run again twice
    Observe: it creates a separate entry the second time

Expected Behavior
Compilation errors would still be counted as program termination (potentially with a different icon)

Current Behavior
Compilation errors keep the console in run mode.

Bug appears at this link: https://replit.com/@PoolloverNathanRecoveredAcct/HalfLonelyCustomers

Screenshot(s)/Screen Recording:
OUTDATED, DISREGARD

Browser/OS/Device: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

Replit Profile: https://replit.com/@PoolloverNathanRecoveredAcct

Update: This appears to only occur if compile fails.