• Stefy Lanza (nextime / spora )'s avatar
    admin: refresh cached-models scan on config save (fix stale models page) · 979a93d8
    Stefy Lanza (nextime / spora ) authored
    The models page reads /admin/api/cached-models (served by the system worker),
    whose _scan_caches() merges each model's saved config (precision/quant/ctx) into
    the cards. The scan freshness check _scan_signature() only fingerprinted the
    HF/GGUF cache directories, never models.json, and model-configure never
    invalidated the scan. A config save rewrites models.json but touches no cache
    file, so the signature stayed unchanged and the scan was served stale for the
    full TTL (600s) -- the engine reloaded but the front showed old config until a
    full restart.
    
    - _scan_signature(): fold models.json mtime into the signature so any process
      serving cached-models re-scans on the next read after a save.
    - system worker /internal/reload-config: call _invalidate_cache_scan() after
      rebinding config, so the front's reload-push refreshes the scan immediately.
    - engine /internal/reload-config: same invalidation for single-process /
      system-worker-down fallback.
    
    Also adds docs/dtype-auto-selection.md (planned design: model-native dtype
    default read from the checkpoint, precision as explicit override, FA2 fp32
    guard) and ignores build artifacts (venv_build.log, .build.pid).
    Co-Authored-By: 's avatarClaude Opus 4.8 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01RdMufYvtTbtGDWsiZVoXce
    979a93d8
Name
Last commit
Last update
codai Loading commit data...
docs Loading commit data...
packaging Loading commit data...
samples Loading commit data...
tests Loading commit data...
tools Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
AI.PROMPT Loading commit data...
CODERAI_API_DOCUMENTATION.md Loading commit data...
CoderAI.gif Loading commit data...
DISTRIBUTION.md Loading commit data...
LICENSE.md Loading commit data...
MULTIMODAL_CAPABILITIES.md Loading commit data...
MULTIMODAL_UI_EXAMPLES.md Loading commit data...
README.md Loading commit data...
build-oci.sh Loading commit data...
build.ps1 Loading commit data...
build.sh Loading commit data...
coderai Loading commit data...
coderai-broker-implementation-reference.md Loading commit data...
coderai-integration.md Loading commit data...
commands Loading commit data...
osxbuild.sh Loading commit data...
package-oci.sh Loading commit data...
package-tarball.sh Loading commit data...
requirements-nvidia.txt Loading commit data...
requirements-vulkan.txt Loading commit data...
requirements.txt Loading commit data...
run-oci.sh Loading commit data...
smoke-test-oci.sh Loading commit data...
todo.md Loading commit data...
video_editor.config.json Loading commit data...