mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-27 17:58:07 +00:00
fix(agent): avoid overwriting manual session titles
This commit is contained in:
parent
46d16f4c28
commit
f725cf830f
2 changed files with 24 additions and 0 deletions
|
|
@ -237,6 +237,13 @@ def _auto_title_session(
|
|||
return
|
||||
|
||||
try:
|
||||
latest = session_db.get_session_title(session_id)
|
||||
if latest:
|
||||
logger.debug(
|
||||
"Skipping auto-generated session title because a title was set while generation was in flight: %s",
|
||||
latest,
|
||||
)
|
||||
return
|
||||
session_db.set_session_title(session_id, title)
|
||||
logger.debug("Auto-generated session title: %s", title)
|
||||
if title_callback is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue