mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-09 13:21:42 +00:00
fix: pass profile-scoped SessionDB to _session_latest_descendant in dashboard chat PTY resume
The chat PTY launch path landed on main after PR #50558 and still called _session_latest_descendant() with the old one-arg signature. Open the requested profile's state DB (matching the REST endpoint) so profile-scoped resume resolves descendants in the right database.
This commit is contained in:
parent
543f069093
commit
6015ee5d2a
1 changed files with 7 additions and 1 deletions
|
|
@ -13757,7 +13757,13 @@ def _resolve_chat_argv(
|
|||
env["HERMES_HOME"] = str(profile_dir)
|
||||
|
||||
if resume:
|
||||
latest_resume, _latest_path = _session_latest_descendant(resume)
|
||||
_resume_db = _open_session_db_for_profile(
|
||||
requested if profile_dir is not None else None
|
||||
)
|
||||
try:
|
||||
latest_resume, _latest_path = _session_latest_descendant(resume, _resume_db)
|
||||
finally:
|
||||
_resume_db.close()
|
||||
if latest_resume:
|
||||
resume = latest_resume
|
||||
env["HERMES_TUI_RESUME"] = resume
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue