fix(run): scope resume session picker to the typed cwd when no lane is selected

Without a lane, the picker had no cwd filter and listed every session
across every repo. Fall back to the free-typed cwd field so resume
suggestions stay scoped to the working directory in view.
This commit is contained in:
2026-08-18 14:51:19 +07:00
parent 1fa52d1bfc
commit f053051a5d
2 changed files with 17 additions and 3 deletions
+3 -1
View File
@@ -163,7 +163,9 @@ export function RunSetup(props: RunSetupProps) {
// props.resumeSession here would resume nothing.
if (s && !props.busy) handleStart(props, s);
}}
cwd={props.laneCwd}
// Fall back to the typed cwd when no lane is selected — otherwise
// an unfiltered picker lists every session from every repo.
cwd={props.laneCwd || props.cwd.trim() || undefined}
/>
</div>
)}