Skip to content

The agent that grows with you

fix(aux): model_upgrade_enabled only silences the automatic title upgrade

teknium1c02616acb35f
diff --git a/agent/title_generator.py b/agent/title_generator.py
index 21c28f168c5..93b3605d051 100644
--- a/agent/title_generator.py
+++ b/agent/title_generator.py
@@ -305,9 +305,6 @@ def generate_title(
if not _auto_title_enabled():
logger.debug("Auto-title skipped: auxiliary.title_generation.enabled=false")
return None
- if not _model_title_upgrade_enabled():
- logger.debug("Model title upgrade skipped: auxiliary.title_generation.model_upgrade_enabled=false")
- return None
try:
if runtime_validator is not None and not runtime_validator():
logger.debug("Title generation skipped: runtime validator returned False")
diff --git a/tests/agent/test_title_generator.py b/tests/agent/test_title_generator.py
index a107a970941..8d94b3041df 100644
--- a/tests/agent/test_title_generator.py
+++ b/tests/agent/test_title_generator.py
@@ -448,6 +448,14 @@ class TestMaybeAutoTitle:
assert db.get_session_title_source("sess-1") == "derived"
thread.assert_not_called()
call_llm.assert_not_called()
+ # The toggle only silences the automatic upgrade: an explicit ``generate_title`` call
+ # (``hermes sessions retitle-skills``) still asks the model.
+ resp = MagicMock()
+ resp.choices = [MagicMock()]
+ resp.choices[0].message.content = '{"title": "Repair startup memory routing"}'
+ with patch("hermes_cli.config.load_config_readonly", return_value=config), \
+ patch("agent.title_generator.call_llm", return_value=resp):
+ assert generate_title("repair startup memory routing") == "Repair startup memory routing"
def test_enabled_false_still_disables_derived_and_model_titles(self, tmp_path):
db = SessionDB(tmp_path / "state.db")
diff --git a/website/docs/user-guide/configuration.md b/website/docs/user-guide/configuration.md
index 1d8b5b3a48e..d6f584bb2dd 100644
--- a/website/docs/user-guide/configuration.md
+++ b/website/docs/user-guide/configuration.md
@@ -1363,7 +1363,8 @@ If you do not want Hermes to auto-generate titles after the first exchange, set
To keep the instant derived title (the first line of your opening message) but never
spend a model call upgrading it, set `auxiliary.title_generation.model_upgrade_enabled: false`.
-No background `auto-title` thread starts and no title-model request is sent; `enabled: false`
+No background `auto-title` thread starts and no automatic title-model request is sent; the
+explicit repair command `hermes sessions retitle-skills` still calls the model. `enabled: false`
still disables both stages.
### Stream-only endpoints