perf: read tree children and jump targets off the UI thread #326
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 225 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.324
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #326"
general
weight: 0.35
henryiii
:robot: _AI text below_ :robot:
Moves the tree I/O off the UI thread (items 7, 8 and 10 of the review).
_load_in_thread). Before, a node withis_loadedtrue (an open file, a local directory) loaded on the UI thread, so a file with many objects oruproot-browser ~froze the UI at start.load_directoryis removed; the tree records the filled nodes, sois_loadednow only tells the jump list which nodes it must not enter (an unopened file, an unlisted remote directory).Directory.is_loadeddoes not change: the local listing is now in a worker, and the jump list still shows the local subdirectories./builds the jump list in a worker (request_jump_candidates), with the status bar, and caches it for each file as before. The finder still shows the full contents of open files./is aLazyRootroot, also when no format claims it (it can be a file or a directory).LazyRoot.rootgives the root of the opened node, so a remote directory is not walked as one file. A failedLazyRootopen (also a failed listing) now shows a notification in addition to the failed-entry label. The next expand tries the load again.LazyRootfor local files. Apath:keyspec opens a node inside the file, and the selections are paths below that node.LazyRootwould need to know the key and change the paths, which conflicts with theNode.pathchange. A local open is fast, and the CLI check covers a failure.The TUI tests call a new
wait_for_treehelper at start, because the first children now load in a worker. A new test records the thread of everyFolder.childandDirectory._listablecall for a file and a directory; it failed before this change.Refs #322