File: apps/api/src/kiki_cockpit/main.py:75
eval_index.refresh() is called once at startup. Unlike HFCache which has _periodic_refresh, EvalIndex has no scheduled refresh — new eval result files dropped after server start are invisible until restart.
Fix: add a background task in lifespan() that calls eval_index.refresh() every N seconds (e.g., 60 s, configurable via settings.eval_refresh_interval_seconds). Mirror the HFCache pattern.
File:
apps/api/src/kiki_cockpit/main.py:75eval_index.refresh()is called once at startup. UnlikeHFCachewhich has_periodic_refresh,EvalIndexhas no scheduled refresh — new eval result files dropped after server start are invisible until restart.Fix: add a background task in
lifespan()that callseval_index.refresh()every N seconds (e.g., 60 s, configurable viasettings.eval_refresh_interval_seconds). Mirror theHFCachepattern.