diff --git a/lua/opencode/ui/footer.lua b/lua/opencode/ui/footer.lua index 90d4ebae..99c0ead3 100644 --- a/lua/opencode/ui/footer.lua +++ b/lua/opencode/ui/footer.lua @@ -35,14 +35,14 @@ end local function build_right_segments() local segments = {} - if state.jobs.is_running() and not state.is_opening then + if loading_animation.is_running() then local cancel_keymap = config.get_key_for_function('input_window', 'cancel') or '' table.insert(segments, { string.format('%s ', cancel_keymap), 'OpencodeInputLegend' }) table.insert(segments, { 'to cancel', 'OpencodeHint' }) table.insert(segments, { ' ' }) end - if not state.jobs.is_running() and state.current_model and config.ui.display_model then + if not loading_animation.is_running() and state.current_model and config.ui.display_model then table.insert(segments, { state.current_model, 'OpencodeHint' }) if state.current_variant then table.insert(segments, { 'ยท', 'OpencodeHint' })