mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-30 20:17:47 +00:00
fix(desktop): carry parent_session_id into the project tree so branches nest
The sidebar nests branch/fork sessions under their parent via flattenSessionsWithBranches, which keys on parent_session_id — but the project tree's session projection (_project_tree_row) dropped it, so lane rows in the projects list/entered view never drew the └─ connector the flat Recents list shows. Project it through (it's already on the rich row).
This commit is contained in:
@@ -8983,6 +8983,10 @@ def _project_tree_row(r: dict) -> dict:
|
||||
return {
|
||||
"id": r.get("id"),
|
||||
"_lineage_root_id": r.get("_lineage_root_id"),
|
||||
# The sidebar nests branch/fork sessions under their parent
|
||||
# (flattenSessionsWithBranches keys on this); without it, lane rows can't
|
||||
# draw the └─ connector the flat Recents list shows.
|
||||
"parent_session_id": r.get("parent_session_id"),
|
||||
"title": r.get("title"),
|
||||
"preview": r.get("preview"),
|
||||
"started_at": r.get("started_at") or 0,
|
||||
|
||||
Reference in New Issue
Block a user