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:
Brooklyn Nicholson
2026-06-23 17:38:29 -05:00
parent a91a541a28
commit e9a5b7d8e6

View File

@@ -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,