Skip to content

Commit 86b4d1d

Browse files
author
oujinsai
committed
fix(reference-picker): use store subscribe
Follow the state observable API migration by switching reference picker setup from state.subscribe(...) to state.store.subscribe(...). This matches the refactor that centralized observable helpers under state.store and fixes startup error: attempt to call field 'subscribe' (a nil value). Verified with: ./run_tests.sh -t tests/unit/reference_picker_spec.lua
1 parent 1f0e579 commit 86b4d1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/opencode/ui/reference_picker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function M.setup()
239239
end)
240240
end
241241

242-
state.subscribe('messages', function()
242+
state.store.subscribe('messages', function()
243243
M._parse_session_messages()
244244
end)
245245
end

0 commit comments

Comments
 (0)