Status: implemented (2026-11-08) — vscode/src/cache.ts, the View (.fqa)
and Download flows, modified in --tool hubList, the hub-newer staleness
badge on tree nodes, and the 30-day pruning sweep on activation.
Browsing a hub QA should not mean re-downloading it every time. Two flows share one cache:
.fqa custom editor
without unpacking it into the workspace.The hub tree already fetches /devices on every refresh. hubList carries
each QA's modified timestamp (one more field from the data it already
pulls), so staleness decisions cost zero extra HC3 calls. The
expensive export (POST /quickApp/export/{id}) runs only when the cached
copy is missing or stale — and once cached, viewing works offline.
context.globalStorageUri / hc3-cache / <hub-serial> / — outside
the workspace, invisible to git, machine-local. Keyed by hub serial
(/settings/info's hcName), so several hubs cannot collide.<id>.fqa (the package, from flua --tool downloadFQA -o) and
<id>.json meta: {modified, fetchedAt, name}.View (.fqa) (new tree action Flua: View (.fqa)):
meta.modified equals the hubList entry's
modified) → open the cached .fqa in the custom editor
(vscode.openWith, viewType flua.fqaViewer).flua --tool downloadFQA <id> -o <cache> -f →
write meta → open.Download (edit) (the existing tree action, re-routed):
cache.ensure(qa) — same hit-or-fetch as above, one HC3 call at most.flua --tool unpack <cached.fqa> -d <workspace>/<name>-<id> — local,
deterministic, and the cache now feeds every repeat download of the
same QA.modified in hubList is also the data a tree-node badge needs ("hub
newer than the local project"): record the modified the project was
unpacked from (a small meta file in the project dir, or the
hub.dirs workspaceState entry extended with it) and compare on refresh.
Follow-up, not v1 — the cache note pins the data shape it depends on.
The cache stores exactly what downloadFQA writes into the workspace
today — the same package, same variable contents. No new secret surface;
the viewer masks secret variables as before. The cache is display
material only: nothing in these flows writes to the hub.
docs/notes/notes-vscode-hub-browser.md — the tree this extendssrc/flua/tools/download_fqa.py — -o/-f (the cache's fetch step)src/flua/tools/hub_list.py — gains modified per QAvscode/src/hub.ts, vscode/src/fqaEditor.ts — the consumer and the
viewer