Skip to content

Commit 40dd8e9

Browse files
committed
fix: context bar updates after message
1 parent c941205 commit 40dd8e9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lua/opencode/ui/context_bar.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,12 @@ local function update_winbar_highlights(win_id)
164164
end
165165

166166
function M.setup()
167-
state.subscribe({ 'current_context_config', 'current_code_buf', 'opencode_focused', 'context_updated_at' }, function()
168-
M.render()
169-
end)
167+
state.subscribe(
168+
{ 'current_context_config', 'current_code_buf', 'opencode_focused', 'context_updated_at', 'user_message_count' },
169+
function()
170+
M.render()
171+
end
172+
)
170173
end
171174

172175
function M.render(windows)

0 commit comments

Comments
 (0)