We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 191e64c commit a7fa453Copy full SHA for a7fa453
1 file changed
lua/opencode/ui/topbar.lua
@@ -109,12 +109,14 @@ end
109
110
function M.setup()
111
state.subscribe('current_mode', on_change)
112
+ state.subscribe('current_model', on_change)
113
state.subscribe('active_session', on_change)
114
M.render()
115
end
116
117
function M.close()
118
state.unsubscribe('current_mode', on_change)
119
+ state.unsubscribe('current_model', on_change)
120
state.unsubscribe('active_session', on_change)
121
122
return M
0 commit comments