fix: race condition & logs

This commit is contained in:
Barrett Ruth 2026-01-27 12:22:53 -05:00
parent 4369fe8b0c
commit d40d80c541
3 changed files with 39 additions and 4 deletions

View file

@ -348,6 +348,8 @@ function M.navigate_problem(direction, language)
return
end
logger.log(('navigate_problem: %s -> %s'):format(current_problem_id, problems[new_index].id))
local active_panel = state.get_active_panel()
if active_panel == 'run' then
require('cp.ui.views').disable()