update screenshot

This commit is contained in:
2026-04-21 10:31:38 -07:00
parent f8230bab9c
commit 10e3cd009b
8 changed files with 1218 additions and 439 deletions
-10
View File
@@ -756,7 +756,6 @@ def _run_op(op: str, data: Any) -> Dict[str, Any]:
refresh = bool(data.get("refresh") or data.get("reload"))
if cached_choices and not refresh:
debug(f"[store-choices] using cached choices={len(cached_choices)}")
return {
"success": True,
"stdout": "",
@@ -767,20 +766,14 @@ def _run_op(op: str, data: Any) -> Dict[str, Any]:
}
try:
config_root = _runtime_config_root()
choices = _load_store_choices_from_config(force_reload=refresh)
if not choices and cached_choices:
choices = cached_choices
debug(
f"[store-choices] config returned empty; falling back to cached choices={len(choices)}"
)
if choices:
choices = _set_cached_store_choices(choices)
debug(f"[store-choices] config_dir={config_root} choices={len(choices)}")
return {
"success": True,
"stdout": "",
@@ -791,9 +784,6 @@ def _run_op(op: str, data: Any) -> Dict[str, Any]:
}
except Exception as exc:
if cached_choices:
debug(
f"[store-choices] refresh failed; returning cached choices={len(cached_choices)} error={type(exc).__name__}: {exc}"
)
return {
"success": True,
"stdout": "",