Skip to content

feat(cache): show remote cache hits - #757

Merged
wan9chi merged 1 commit into
remote-cache-restorefrom
remote-cache-hit-source
Sep 27, 2026
Merged

wan9chi merged 1 commit into
remote-cache-restorefrom
remote-cache-hit-source

Conversation

@wan9chi

@wan9chi wan9chi commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Motivation

A remote hit looks the same as a local one, so it's hard to tell whether the remote cache is working and how much of a run it served.

Changes

Cache hits record whether they came from the local or the remote cache, and remote hits are marked. Local hits look as before.

  • Inline: ◉ remote cache hit, replaying
  • Compact summary: vp run: remote cache hit, 1.2s saved. for one task, and vp run: 2/2 cache hit (100%, 1 remote). for several
  • --last-details: 2 cache hits (1 remote) in the statistics, and → Remote cache hit - output replayed - 1.2s saved

Summaries saved before this change read as local hits.

@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 8d89f96 to 00bacf6 Compare September 24, 2026 19:46
@wan9chi
wan9chi added this pull request to stack #751 September 24, 2026 19:46
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

fspy benchmark

linux

dynamic/launch             change  -0.78%  [ -6.48% ..  +5.10%]  overhead  +297.71%
dynamic/access             change  -0.14%  [-13.49% ..  +4.73%]  overhead   +13.49%
dynamic/access-relative    change  +0.00%  [-18.52% ..  +9.59%]  overhead   +59.33%
dynamic/access-contended   change  +1.77%  [ -3.41% .. +17.87%]  overhead   +13.78%
static/launch              change  -0.17%  [ -7.01% ..  +8.42%]  overhead  +698.88%
static/access              change  +0.57%  [ -7.15% .. +10.27%]  overhead  +850.23%
static/access-relative     change  +0.00%  [ -3.18% ..  +5.37%]  overhead +1231.89%
static/access-contended    change  +0.26%  [ -8.20% ..  +4.83%]  overhead +2148.23%

macos

dynamic/launch             change  +0.14%  [ -3.35% ..  +4.37%]  overhead  +222.09%
dynamic/access             change  +0.71%  [-15.05% .. +10.41%]  overhead    +5.34%
dynamic/access-relative    change  +0.19%  [ -5.07% .. +37.25%]  overhead  +269.67%
dynamic/access-contended   change  +1.22%  [-11.12% ..  +8.69%]  overhead    +2.49%

windows

dynamic/launch             change  +0.69%  [ -6.11% ..  +7.80%]  overhead   +28.33%
dynamic/access             change  +0.37%  [ -1.09% ..  +4.22%]  overhead    +2.05%
dynamic/access-relative    change  -0.18%  [ -2.83% ..  +2.12%]  overhead    +1.83%
dynamic/access-contended   change  +0.18%  [ -1.05% ..  +1.08%]  overhead    +1.44%

@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 00bacf6 to d9ec5a7 Compare September 25, 2026 02:04
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch 2 times, most recently from acbe343 to 0f57cb9 Compare September 25, 2026 02:28
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 0f57cb9 to 527f703 Compare September 25, 2026 02:29
@wan9chi
wan9chi removed this pull request from stack #751 September 25, 2026 02:34
@wan9chi
wan9chi added this pull request to stack #759 September 25, 2026 02:35
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 527f703 to 33bfa6a Compare September 25, 2026 02:38
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 33bfa6a to 21f0eca Compare September 25, 2026 03:07
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch 2 times, most recently from 6e5fd41 to 0f4d66a Compare September 27, 2026 12:15
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch 2 times, most recently from 7f49a3c to d6253f3 Compare September 27, 2026 12:40
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch 3 times, most recently from 3f5403f to 45b219f Compare September 27, 2026 13:30
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch 4 times, most recently from 3d5d28a to 366830e Compare September 27, 2026 15:40
A cache hit now records whether it came from the local or the remote
cache. Remote hits are marked inline (`◉ remote cache hit, replaying`),
in the compact summary (`vp run: remote cache hit, 1s saved.` for a
single task, `2/3 cache hit (66%, 1 remote)` otherwise), in the full
summary's statistics (`2 cache hits (1 remote)`), and in the task details
(`→ Remote cache hit - output replayed - 1s saved`). Local hits look as
before.

The saved summary records the source, and summaries saved without it
read as local hits.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@wan9chi
wan9chi force-pushed the remote-cache-hit-source branch from 366830e to 85ba481 Compare September 27, 2026 15:46
@wan9chi
wan9chi marked this pull request as ready for review September 27, 2026 16:31
@wan9chi
wan9chi merged commit 66d00e6 into main Sep 27, 2026
19 of 32 checks passed
@wan9chi
wan9chi deleted the remote-cache-hit-source branch September 27, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant