Commit c79b55d
refactor(busy-route): drop dead "old DLL null-cwd" fallback
Follow-up to a6ffe85. The version-lockstep connection guard
(NamedPipeServer.cs's \`version_mismatch\` branch) refuses any
proxy/DLL pair whose versions disagree, so a busy response that
reaches PowerShellTools.cs is guaranteed to come from a same-version
DLL — i.e. one that emits the \`cwd\` field. The "leave it null on
older DLLs and we fall back to HOME" branch the prior commit added
was structurally unreachable.
Removed the intermediate \`sourceCwd\` local and the comment about
old-DLL backward compatibility. Kept the \`Directory.Exists\` check
because the cwd path itself can still be unreachable at runtime
(deleted folder between snapshot and spawn, disconnected network
drive) — that's a different class of edge case from version skew
and the HOME fallback there is a real safety net for spawn success.
Updated the \`Cwd\` field's docstring on \`GetStatusResponse\` to
explain the field is nullable solely because \`Directory.GetCurrentDirectory\`
can throw on a disconnected drive (so the DLL emits null), not
because old DLLs might omit it.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a6ffe85 commit c79b55d
2 files changed
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
363 | 368 | | |
364 | 369 | | |
365 | 370 | | |
| |||
0 commit comments