cp.nvim/lua
Barrett Ruth 73be6b8277 fix(setup): cancel all active panels on problem navigation
Problem: `navigate_problem` only called `views.disable()` for the `'run'`
panel; interactive and stress terminals were left alive when stepping
through problems with `:CP next/prev`. In-flight `run_io_view` callbacks
were also not invalidated since `is_new_contest` stays false for same-contest
navigation, so the generation-counter guard in `setup_contest` never fired.

Solution: call `cancel_io_view()` unconditionally in `navigate_problem`
and expand the panel dispatch to cover `'interactive'` and `'stress'`
alongside `'run'`, mirroring the contest-switch logic in `setup_contest`.
2026-03-05 18:23:39 -05:00
..
cp fix(setup): cancel all active panels on problem navigation 2026-03-05 18:23:39 -05:00