fix(workspace): auto-set cwd when a lane is selected from the strip

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.
This commit is contained in:
2026-08-13 13:55:51 +07:00
parent 78fb82b257
commit b0bfc66d65
+4 -1
View File
@@ -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 && (