Private
Public Access
0
0
Files
manual_slop/tests
ed 3c7455fdbe test(rag): wait for files setter before triggering RAG sync
The set_value('files', ...) call is async (push_event -> pending_gui_tasks
-> render loop). The RAG setters (rag_enabled, rag_source, rag_emb_provider)
are also async and each triggers a RAG sync via submit_io. The syncs and
the files setter are NOT ordered: the sync may fire before the files
setter is processed, in which case the sync sees self.files == [] and
skips the rebuild (RAG sync only triggers the rebuild if both
is_empty() AND self.files are truthy).

Fix: poll get_value('files') until the expected value is reflected,
guaranteeing the files setter is processed before the RAG setters
trigger their syncs. Belt-and-suspenders alongside the project-switch
fix from the previous commit.

The test was passing in 4d2a6666 because of timing; the project
switch added latency, so the race is now exposed.
2026-06-28 00:01:22 -04:00
..
2026-03-05 17:13:59 -05:00
2026-05-10 15:14:54 -04:00
2026-05-20 07:51:58 -04:00
2026-03-05 16:37:30 -05:00
2026-03-05 17:13:59 -05:00
2026-03-05 16:37:30 -05:00
2026-03-07 20:32:59 -05:00
2026-03-12 19:08:51 -04:00
ok
2026-03-07 21:40:40 -05:00