Commit 26d24bf
feat(cache): detect stdin data and disable cache update
- Forward stdin from parent to child process concurrently with output draining
- Track whether stdin had data during execution
- Disable cache update when stdin had data (output may depend on input)
- Add CacheNotUpdatedReason::StdinDataExists variant
- Add e2e test for stdin passthrough functionality
This ensures tasks that read from stdin don't get incorrectly cached,
since their output may depend on the input data which we don't fingerprint.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent de0f2ca commit 26d24bf
File tree
5 files changed
+236
-83
lines changed- crates
- vite_task_bin/tests/e2e_snapshots/fixtures/stdin-passthrough/snapshots
- vite_task/src/session
- cache
- execute
5 files changed
+236
-83
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
| 307 | + | |
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
311 | 314 | | |
312 | 315 | | |
313 | 316 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
293 | | - | |
294 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
295 | 302 | | |
296 | 303 | | |
297 | 304 | | |
| |||
326 | 333 | | |
327 | 334 | | |
328 | 335 | | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | 336 | | |
333 | 337 | | |
334 | 338 | | |
| |||
0 commit comments