Files
mattgodbolt-moltyandClaude Opus 5 fee29ba0ba Mask temp paths on the compilation cache-hit path
cachePut() stores the result before cleanupResult() masks it, and the
cache-hit path returns the stored value directly without ever calling
cleanupResult(). So a cache hit hands back compilationOptions and
inputFilename still carrying the temp dir of whichever compilation
happened to populate the entry.

The visible effect is that the compilation-options popover shows a
different command line for a warm compile than for a cold one of the
same input, quoting a temp dir belonging to an unrelated earlier
request. It also means the masking added in #9033 only takes effect on
cold compiles.

Mask on the way out rather than moving cachePut(), because that also
repairs entries already cached unmasked, instead of only fixing newly
written ones.

Safe to apply twice: maskRootdirKeepingAppPrefix() only rewrites paths
that still carry the temp prefix, so re-masking an already-masked
result is a no-op. Pinned with a test.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-24 21:33:47 -05:00
..
2026-07-14 08:46:10 +01:00
2021-10-05 01:45:05 +02:00
2019-08-21 01:26:16 +02:00
2025-01-29 10:41:03 -06:00
2021-09-13 20:22:27 +02:00
2024-10-26 17:42:22 +02:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2026-02-08 12:50:20 +01:00
2024-03-08 22:25:09 -06:00