From c8bb23ccd3f11cf10c0bda7e8e58b034e3d9c96d Mon Sep 17 00:00:00 2001 From: jenkins Date: Tue, 18 Aug 2026 06:55:51 -0300 Subject: [PATCH] hermes: surface a friendly "Automatic" routing label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The composer routing chip showed bare AUTO/FAST/BALANCED/DEEP/MAXIMUM. Relabel it to Automatic/Fast/Balanced/Deep/Maximum and align the auto-route model option labels to Automatic · Fast/Balanced/Deep/Maximum so they match the panels.js profile-default mapping and read as a recognizable model name. Manual model names (Claude · Opus, etc.) are unchanged. Update the image-build guard and its quality test to match. Co-Authored-By: Claude Opus 4.8 --- dockerfiles/Dockerfile.hermes-webui | 2 +- dockerfiles/hermes-webui-router-patch.py | 2 +- dockerfiles/hermes-webui-router.js | 10 +++++----- testing/tests/test_hermes_chat_quality.py | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dockerfiles/Dockerfile.hermes-webui b/dockerfiles/Dockerfile.hermes-webui index a9f22721..52803505 100644 --- a/dockerfiles/Dockerfile.hermes-webui +++ b/dockerfiles/Dockerfile.hermes-webui @@ -111,7 +111,7 @@ RUN /opt/hermes/.venv/bin/python -c 'import cryptography, yaml' \ && grep -Fq "capability.provider!=='local_command'" /opt/hermes-webui/static/atlas-voice.js \ && grep -Fq 'data-priority="maximum"' /opt/hermes-webui/static/index.html \ && grep -Fq 'routing_priority:priority' /opt/hermes-webui/static/atlas-router.js \ - && grep -Fq "'atlas/auto/fast':'AUTO · Fast'" /opt/hermes-webui/static/atlas-router.js \ + && grep -Fq "'atlas/auto/fast':'Automatic · Fast'" /opt/hermes-webui/static/atlas-router.js \ && grep -Fq 'explicit_reasoning_effort' /opt/hermes-webui/api/gateway_chat.py \ && /opt/hermes/.venv/bin/python -m py_compile \ /opt/hermes-webui/api/routes.py \ diff --git a/dockerfiles/hermes-webui-router-patch.py b/dockerfiles/hermes-webui-router-patch.py index 779a9c5d..8bae3eb1 100644 --- a/dockerfiles/hermes-webui-router-patch.py +++ b/dockerfiles/hermes-webui-router-patch.py @@ -23,7 +23,7 @@ replace_once( '''
\n''', '''
diff --git a/dockerfiles/hermes-webui-router.js b/dockerfiles/hermes-webui-router.js index 471c049c..28c2d33c 100644 --- a/dockerfiles/hermes-webui-router.js +++ b/dockerfiles/hermes-webui-router.js @@ -2,14 +2,14 @@ 'use strict'; const PRIORITIES=new Set(['auto','fast','balanced','deep','maximum']); - const LABELS={auto:'AUTO',fast:'FAST',balanced:'BALANCED',deep:'DEEP',maximum:'MAXIMUM'}; + const LABELS={auto:'Automatic',fast:'Fast',balanced:'Balanced',deep:'Deep',maximum:'Maximum'}; const STORAGE_KEY='atlas.hermes.routing-priority'; const EXPLICIT_EFFORT_KEY='atlas.hermes.explicit-reasoning'; const ROUTE_LABELS={ - 'atlas/auto/fast':'AUTO · Fast', - 'atlas/auto/balanced':'AUTO · Balanced', - 'atlas/auto/deep':'AUTO · Deep', - 'atlas/auto/maximum':'AUTO · Maximum', + 'atlas/auto/fast':'Automatic · Fast', + 'atlas/auto/balanced':'Automatic · Balanced', + 'atlas/auto/deep':'Automatic · Deep', + 'atlas/auto/maximum':'Automatic · Maximum', 'atlas/manual/codex/luna':'Codex · Luna', 'atlas/manual/codex/terra':'Codex · Terra', 'atlas/manual/codex/sol':'Codex · SOL', diff --git a/testing/tests/test_hermes_chat_quality.py b/testing/tests/test_hermes_chat_quality.py index b513b452..4cf45ffb 100644 --- a/testing/tests/test_hermes_chat_quality.py +++ b/testing/tests/test_hermes_chat_quality.py @@ -305,7 +305,7 @@ def test_webui_recovers_auth_and_labels_session_scoped_controls(): assert "session_key.startswith('telegram-topic-')" in telegram_project_patch router = (ROOT / "dockerfiles" / "hermes-webui-router.js").read_text() - assert "'atlas/auto/fast':'AUTO · Fast'" in router + assert "'atlas/auto/fast':'Automatic · Fast'" in router assert "'atlas/manual/codex/sol':'Codex · SOL'" in router assert "'atlas/manual/claude/opus':'Claude · Opus'" in router assert "watchModelOptions('modelSelect')" in router