Skip to content

Commit 06775f8

Browse files
branchseerclaude
andcommitted
refactor(cache): remove redundant includes_auto guard on post-run validation
The post-run fingerprint is empty when auto inference is disabled, so validate() is a no-op regardless. The input_config is already part of the cache entry key, ensuring consistency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d5ba6e8 commit 06775f8

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • crates/vite_task/src/session/cache

crates/vite_task/src/session/cache/mod.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ impl ExecutionCache {
200200
) -> anyhow::Result<Result<CacheEntryValue, CacheMiss>> {
201201
let spawn_fingerprint = &cache_metadata.spawn_fingerprint;
202202
let execution_cache_key = &cache_metadata.execution_cache_key;
203-
let input_config = &cache_metadata.input_config;
204203

205204
let cache_key = CacheEntryKey::from_metadata(cache_metadata, workspace_root)?;
206205

@@ -213,10 +212,9 @@ impl ExecutionCache {
213212
return Ok(Err(CacheMiss::FingerprintMismatch(mismatch)));
214213
}
215214

216-
// Validate post-run fingerprint (inferred inputs) only if auto inference is enabled
217-
if input_config.includes_auto
218-
&& let Some(post_run_fingerprint_mismatch) =
219-
cache_value.post_run_fingerprint.validate(workspace_root)?
215+
// Validate post-run fingerprint (inferred inputs from fspy)
216+
if let Some(post_run_fingerprint_mismatch) =
217+
cache_value.post_run_fingerprint.validate(workspace_root)?
220218
{
221219
return Ok(Err(CacheMiss::FingerprintMismatch(
222220
FingerprintMismatch::PostRunFingerprint(post_run_fingerprint_mismatch),

0 commit comments

Comments
 (0)