From 7c3f62d09491e876edcd40814454e591a634f077 Mon Sep 17 00:00:00 2001 From: bruno Date: Tue, 14 Jul 2026 12:49:54 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20workspace=5Fkey=20set=20from=20cookie=20?= =?UTF-8?q?=E2=86=92=20=F0=9F=94=97=20icon=20on=20homepage=20for=20remote?= =?UTF-8?q?=20workspaces?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/routers/dashboard.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/routers/dashboard.py b/app/routers/dashboard.py index 0381787..1333b97 100644 --- a/app/routers/dashboard.py +++ b/app/routers/dashboard.py @@ -70,6 +70,8 @@ def _sidebar_data(request: Request, repos: list[dict]) -> dict: active_ws_name = "Workspace" workspace_pages = [] gitea_workspace = False + gitea_owner = "" + gitea_repo = "" if ws_cookie and ws_cookie.startswith("gitea:"): # Gitea workspace: set owner/repo for client-side tree loading @@ -114,6 +116,7 @@ def _sidebar_data(request: Request, repos: list[dict]) -> dict: return { "workspace_name": ws, "workspace_initial": initial, "active_ws_name": active_ws_name, + "workspace_key": f"{gitea_owner}/{gitea_repo}" if gitea_workspace else "", "workspace_pages": workspace_pages, "gitea_workspace": gitea_workspace, "current_page": "Dashboard", "last_edited": "now",