fix: invalidate model cache on auth-store drift#1703
Closed
Michaelyklam wants to merge 3 commits into
Closed
Conversation
1997a48 to
94d0b78
Compare
Collaborator
|
Closed by the v0.51.4 release in PR #1707 (merged at 4daa238, deployed to production). Live on production: https://github.com/nesquena/hermes-webui/releases/tag/v0.51.4 🚀 |
Michaelyklam
pushed a commit
to Michaelyklam/hermes-webui
that referenced
this pull request
May 5, 2026
Michaelyklam
added a commit
to Michaelyklam/hermes-webui
that referenced
this pull request
May 5, 2026
10 PRs (3 surfaces additions, 7 fixes): - nesquena#1644 model picker chip + group count (@bergeouss, closes nesquena#1425) - nesquena#1684 update network failures UX (@Michaelyklam, closes nesquena#1321) - nesquena#1685 Codex spark models (@Michaelyklam, closes nesquena#1680) - nesquena#1689 normalize profile base homes (@Michaelyklam, refs nesquena#749) - nesquena#1693 adaptive title refresh deadlock (@ai-ag2026) - nesquena#1701 normalize update banner URL (@Michaelyklam, closes nesquena#1691) - nesquena#1702 workspace double-click rename (@Michaelyklam, closes nesquena#1698) - nesquena#1703 cache invalidation on auth-store drift (@Michaelyklam, closes nesquena#1699) - nesquena#1704 markdown fence lengths (@Michaelyklam, closes nesquena#1696) - nesquena#1706 multi-image paste fix (@Michaelyklam, closes nesquena#1697) Tests: 4477 → 4503 (+26). Opus: SHIP, 7/7 verification clean. Co-authored-by: Michael Lam <Michaelyklam1@gmail.com> Co-authored-by: ai-ag2026 <noreply@github.com> Co-authored-by: bergeouss <noreply@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thinking Path
/api/modelsis the source of truth for the WebUI composer model picker and configured PRIMARY badges.auth.jsonchanges made by terminalhermes setup.STATE_DIR/models_cache.jsonable to serve a previous active provider for up to the 24h TTL.config.yamlandauth.json, then rebuild when either changes outside WebUI.What Changed
/api/modelscache source fingerprint coveringconfig.yamlandauth.jsonpath, mtime, and size._source_fingerprintand bumped the disk cache schema to reject older cache files cleanly.auth.jsonactive-provider change;auth.jsonactive-provider change;Why It Matters
Users who switch primary providers from the Hermes CLI should see the WebUI picker follow that source of truth after refresh, without clearing browser state or waiting for cache TTL expiry. This keeps the WebUI in sync with terminal
hermes setupand prevents stale PRIMARY badges such as OpenRouter/MiniMax lingering after switching to OpenCode Go.Verification
python -m pytest tests/test_issue1699_model_cache_source_fingerprint.py -q— 3 passed (RED first: two stale-cache tests failed before the fix)./home/michael/.hermes/hermes-agent/venv/bin/python -m pytest tests/test_issue1699_model_cache_source_fingerprint.py tests/test_issue1633_models_cache_version_stamp.py -q— 22 passed after the CI-portability/test-state follow-ups.HERMES_WEBUI_TEST_STATE_DIR=/tmp/hermes-webui-kanban/t_0cdf52fe/full-suite-state-1997a48 HERMES_WEBUI_TEST_PORT=29583 env -u HERMES_CONFIG_PATH -u HERMES_WEBUI_HOST /home/michael/.hermes/hermes-agent/venv/bin/python -m pytest tests/ -q— 4480 passed, 2 skipped, 1 xfailed, 2 xpassed, 1 warning, 8 subtests passed in 435.69s.a358400— pending immediately after the final test-state follow-up; previous head94d0b78was green on Python 3.11, 3.12, and 3.13.git diff --check— passed.auth.jsonactive provideropenrouter, loaded/api/models, editedauth.jsonexternally toopencode-go, reloaded the same browser tab without clearing cookies/localStorage, and confirmed/api/models/picker data reportedactive_provider: opencode-go,PRIMARY (OPENCODE-GO), provider groupopencode-go, and no stale OpenRouter group.Evidence / UI media
Raw media verified HTTP 200 (
150269bytes).Risks / Follow-ups
_source_fingerprintmetadata.Model Used
OpenAI Codex
gpt-5.5via Hermes, with terminal/file/browser tooling.Closes #1699