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:
@@ -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 && (
|
||||
|
||||
Reference in New Issue
Block a user