Commit 89cf261
fix(shellwrap): unify ResolveDockerSource with ResolveDockerPath cache path (Codex P2 r4)
ResolveDockerSource honored a live cached negative by returning 'absent'
WITHOUT running the well-known-path stat probe that ResolveDockerPath uses
during the negative-TTL window — so docker_cli_source reported 'absent' while
ResolveDockerPath returned the bundled path (schema-v5 telemetry mismatch).
Root-cause the recurring divergence (this is the 2nd source-tracking drift
between the two functions) by extracting a single shared resolveDockerPathLocked
helper that is the only writer of the cache + dockerPathSource. ResolveDockerPath
and ResolveDockerSource now drive the identical cache path, including the
MCP-2744 override, so they cannot disagree on the same cache state.
Regression test asserts ResolveDockerSource reports 'bundled' (not 'absent')
when a well-known docker appears during the negative-TTL window — verified
red->green against the shared-resolver refactor.
Related #696
Co-Authored-By: Paperclip <noreply@paperclip.ing>1 parent 71c1b4e commit 89cf261
2 files changed
Lines changed: 56 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
231 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
232 | 241 | | |
233 | 242 | | |
234 | 243 | | |
| |||
273 | 282 | | |
274 | 283 | | |
275 | 284 | | |
276 | | - | |
277 | | - | |
278 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
279 | 290 | | |
280 | 291 | | |
281 | 292 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
| 293 | + | |
299 | 294 | | |
300 | 295 | | |
301 | | - | |
302 | | - | |
| 296 | + | |
303 | 297 | | |
304 | 298 | | |
305 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
396 | 436 | | |
397 | 437 | | |
398 | 438 | | |
| |||
0 commit comments