Skip to content

Commit a7fa453

Browse files
committed
fix(topbar): also subscribe to current_model
1 parent 191e64c commit a7fa453

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lua/opencode/ui/topbar.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,14 @@ end
109109

110110
function M.setup()
111111
state.subscribe('current_mode', on_change)
112+
state.subscribe('current_model', on_change)
112113
state.subscribe('active_session', on_change)
113114
M.render()
114115
end
115116

116117
function M.close()
117118
state.unsubscribe('current_mode', on_change)
119+
state.unsubscribe('current_model', on_change)
118120
state.unsubscribe('active_session', on_change)
119121
end
120122
return M

0 commit comments

Comments
 (0)