From e9a5b7d8e6444b56c2d4ecaef3a829208edbd9c7 Mon Sep 17 00:00:00 2001 From: Brooklyn Nicholson Date: Tue, 23 Jun 2026 17:38:29 -0500 Subject: [PATCH] fix(desktop): carry parent_session_id into the project tree so branches nest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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). --- tui_gateway/server.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tui_gateway/server.py b/tui_gateway/server.py index 299c0f74620..cbb487af2e6 100644 --- a/tui_gateway/server.py +++ b/tui_gateway/server.py @@ -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,