From 59984390756883f455047fe459b6d30c7f1c4831 Mon Sep 17 00:00:00 2001 From: phanium <91544758+phanen@users.noreply.github.com> Date: Sun, 5 Jul 2026 12:28:22 +0800 Subject: [PATCH] fix(footer): use spinner is_running() for cancel hint signal --- lua/opencode/ui/footer.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' })