From b0bfc66d653170ae31a1ba23e601657614093208 Mon Sep 17 00:00:00 2001 From: nntrivi2001 Date: Thu, 13 Aug 2026 13:55:51 +0700 Subject: [PATCH] fix(workspace): auto-set cwd when a lane is selected from the strip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Selecting a lane card only updated selectedLaneId, leaving the run-setup cwd field on whatever it was before — now selecting a lane also syncs cwd to that lane's own working directory. --- client/src/pages/Workspace.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/pages/Workspace.tsx b/client/src/pages/Workspace.tsx index 036e397..1f30b3e 100644 --- a/client/src/pages/Workspace.tsx +++ b/client/src/pages/Workspace.tsx @@ -894,7 +894,10 @@ export function Workspace() { key={l.id} lane={l} selected={selectedLaneId === l.id} - onSelect={() => setSelectedLaneId(l.id)} + onSelect={() => { + setSelectedLaneId(l.id); + setCwd(l.cwd); + }} /> ))} {!lanes.length && (