fix(title): keep the derived title while skipping the model upgrade (#85194)

`auxiliary.title_generation.enabled: false` turned off both title stages, so an
operator who only wanted to stop the background model call (unavailable or
metered endpoint) also lost the instant derived title. `model_upgrade_enabled:
false` keeps the derived title and starts no `auto-title` thread; missing keeps
the two-stage default and `enabled: false` still disables both.

Salvaged from #85401 onto current main: the gate reuses `_title_config()` and
sits before `spawn_context_thread` (the thread seam moved off `threading.Thread`).
This commit is contained in:
Gustavo Payano
2026-08-13 05:38:25 -04:00
committed by Teknium
parent 290bdc3c76
commit 06387ae8d3
5 changed files with 57 additions and 0 deletions

View File

@@ -862,6 +862,7 @@ prompt_caching:
# # Automatic session title generation after the first exchange
# title_generation:
# enabled: true # set false to disable auto-title generation
# model_upgrade_enabled: true # set false to keep the instant derived title and skip the model call
# provider: "auto"
# model: ""
# timeout: 30