Commit 9974bfe
committed
Fix infinite restart loop when effectiveCwd is undefined
When resolveThreadWorkspaceCwd returns undefined but the active session
has a persisted cwd, the comparison 'effectiveCwd !== activeSession?.cwd'
always evaluates to true, triggering a restart. However, startProviderSession
skips passing cwd when effectiveCwd is falsy, and ProviderService.startSession
backfills the old cwd from the persisted binding, creating the same mismatch
on the next turn — an infinite restart loop.
Fix: only consider cwd as changed when effectiveCwd is defined, so an
unresolved workspace does not cause spurious restarts.1 parent fcb4421 commit 9974bfe
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
0 commit comments