GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(cache): honor runner ignored inputs by wan9chi · Pull Request #431 · voidzero-dev/vite-task

Conversation

@wan9chi

@wan9chi wan9chi commented Jun 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Motivation

Runner-aware tools sometimes read files that are cache-like implementation details rather than semantic task inputs. Those reads should not make auto-input fingerprints unstable or prevent cache hits when the tool can identify them.

Scope

Add the ignoreInput(path) IPC request, expose it through the Rust and Node clients, validate and record absolute paths on the server, and filter matching fspy-inferred reads before post-run fingerprinting and read/write overlap checks. Add an e2e that mutates an ignored file between runs and still gets a cache hit.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

fengmk2 reacted with rocket emoji
All reactions
  • 🚀 1 reaction
@wan9chi Graphite App

wan9chi commented Jun 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author
  • docs: consolidate runner-aware changelog entries #463 Graphite
  • test(e2e): verify Vite auto output restoration #462 Graphite
  • feat(cache): default outputs to automatic tracking #461 Graphite
  • feat(cache): add explicit auto output tracking #460 Graphite
  • feat(cache): honor runner ignored outputs #459 Graphite
  • feat(cache): honor runner ignored inputs #431 Graphite 👈 (View in Graphite)
  • refactor(path): normalize AbsolutePath strip_prefix #464 Graphite
  • main

This stack of pull requests is managed by Graphite. Learn more about stacking.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wan9chi wan9chi mentioned this pull request Jun 7, 2026
fix(cache): provide runner IPC for explicit-input tasks #430
Merged
wan9chi added a commit to voidzero-dev/vite-plus that referenced this pull request Jun 7, 2026
@wan9chi
chore(deps): repin vite-task to auto-output-track tip (dbe9aca0)
3d6a653
Repoints the vite-task git deps to the tip of the split stack
(voidzero-dev/vite-task#431, the auto-output-track branch), whose crates
tree is identical to the prior pin plus the runner env-change message
refinement. Regenerates the two snapshots whose `VITE_*` cache-miss line
now renders as "envs changed" (matching manual env config) instead of
"tracked env glob 'VITE_*' changed".

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@wan9chi
wan9chi force-pushed the auto-output-track branch 2 times, most recently from 68fb22e to 770f000 Compare June 11, 2026 11:23
@wan9chi
wan9chi force-pushed the infra-env-track branch from 2408cf5 to 4ac2e4d Compare June 11, 2026 11:23
@wan9chi wan9chi mentioned this pull request Jun 11, 2026
perf(plan): share the planning env map via Arc instead of cloning per command #436
Merged
wan9chi added a commit that referenced this pull request Jun 11, 2026
@wan9chi @claude
perf(plan): share the planning env map via Arc instead of cloning per…
31fea5b
… command (#436)

## Motivation

The planning context's env map — the full session environment, typically
hundreds of entries — was copied at every boundary it crossed during
planning:

- once into `PlanContext` per plan (`plan_query`),
- once **per `&&`-item** by `PlanContext::duplicate` (each command gets
a scoped context),
- once more per `&&`-item into `ScriptCommand::envs` for program lookup
and plan-request callbacks,
- and once per spawn into `all_envs`.

Of these, only the last one does real work — the spawn env is filtered
in place by `EnvFingerprints::resolve`. Every other copy duplicates an
almost-always-identical map just to hand it to the next stage, and the
cost scales with task count × command count, not with actual env
changes.

The immediate trigger is the upcoming runner-aware caching work
(#430/#431): it saves each spawn's **full env context** into the plan
(`SpawnCommand::full_envs`) so `getEnv`/`getEnvs` and tracked-env
validation resolve against the plan rather than the live process env.
Without sharing, that would add yet another full map copy per spawn;
with this change it costs a pointer.

## Approach

Wrap the map in `Arc` with copy-on-write semantics:

- Duplication and hand-off points (`duplicate`, `ScriptCommand::envs`,
`PlanContext::new`) share the map — O(1).
- The two mutation points pay for a copy only when they change
something: `prepend_path` once per task node (package `.bin` PATH
prepend), and `add_envs` only when a command actually has prefix envs —
an empty prefix set is guarded so it doesn't break sharing.
- The per-spawn `all_envs` clone remains, with a comment marking it as
the one place the map's contents are genuinely copied.

No behavior change; `Session` already held the map in an `Arc`, so its
call sites are untouched.

Co-authored-by: Claude Fable 5 <[email protected]>
@wan9chi
wan9chi force-pushed the auto-output-track branch from 770f000 to 7f96b4e Compare June 11, 2026 14:40
@wan9chi
wan9chi force-pushed the infra-env-track branch 2 times, most recently from 40285d1 to 9f69a28 Compare June 11, 2026 14:56
@wan9chi
wan9chi force-pushed the auto-output-track branch 2 times, most recently from 12d0ba9 to 3815e56 Compare June 11, 2026 15:29
@wan9chi
wan9chi force-pushed the infra-env-track branch from 031c50b to 9641f06 Compare June 11, 2026 15:41
@wan9chi
wan9chi force-pushed the auto-output-track branch 2 times, most recently from 766c816 to ae8de59 Compare June 11, 2026 16:14
@wan9chi
wan9chi force-pushed the infra-env-track branch from 9641f06 to c9cd2f0 Compare June 11, 2026 16:14
This was referenced Jun 11, 2026
fix(plan): extend the command's env context with prefix envs before interpreting it #440
Merged
feat(ipc): runner ↔ tool IPC channel with disableCache #441
Merged
@wan9chi
wan9chi force-pushed the auto-output-track branch from ae8de59 to 655ba31 Compare June 11, 2026 16:20
@wan9chi
wan9chi force-pushed the infra-env-track branch from c9cd2f0 to 015e6e5 Compare June 11, 2026 16:20
@wan9chi
wan9chi force-pushed the auto-output-track branch from 655ba31 to b3376dc Compare June 11, 2026 16:46
@wan9chi
wan9chi force-pushed the infra-env-track branch from 015e6e5 to 2cbf17b Compare June 11, 2026 16:46
@wan9chi
wan9chi force-pushed the auto-output-track branch from b3376dc to 2122683 Compare June 11, 2026 17:06
@wan9chi
wan9chi force-pushed the infra-env-track branch 2 times, most recently from a5a61e3 to 9f02db0 Compare June 11, 2026 17:28
@wan9chi
wan9chi force-pushed the auto-output-track branch 2 times, most recently from 02d8c94 to 1a62122 Compare June 11, 2026 17:44
@wan9chi
wan9chi force-pushed the infra-env-track branch from 9f02db0 to 163574b Compare June 11, 2026 17:44
@wan9chi wan9chi mentioned this pull request Jun 11, 2026
refactor(execute): single exit paths for pipe/wait and cache update #442
Merged
@wan9chi
wan9chi force-pushed the infra-env-track branch from f40f5b5 to 04f458c Compare June 13, 2026 05:11
@wan9chi
wan9chi force-pushed the auto-output-track branch 2 times, most recently from 29bdd14 to 6eaeaea Compare June 13, 2026 05:14
@wan9chi
wan9chi force-pushed the infra-env-track branch from 04f458c to 8f68150 Compare June 13, 2026 05:14
@wan9chi
wan9chi changed the base branch from infra-env-track to graphite-base/431 June 13, 2026 10:59
@wan9chi
wan9chi changed the base branch from graphite-base/431 to infra-env-track June 13, 2026 10:59
@wan9chi
wan9chi changed the base branch from infra-env-track to graphite-base/431 June 13, 2026 11:01
This was referenced Jun 13, 2026
feat(client): serve getEnv over runner IPC #446
Merged
fix(plan): serve runner getEnv from unfiltered env context #447
Merged
feat(cache): fingerprint tracked getEnv reads #448
Merged
feat(client): serve getEnvs over runner IPC #449
Merged
feat(cache): fingerprint getEnvs match sets #450
Merged
test(e2e): verify real Vite env cache tracking #451
Merged
@wan9chi
wan9chi force-pushed the graphite-base/431 branch from 8f68150 to ecff178 Compare June 13, 2026 11:02
@wan9chi
wan9chi force-pushed the auto-output-track branch from 6eaeaea to 27fcfe5 Compare June 13, 2026 11:02
@wan9chi
wan9chi changed the base branch from graphite-base/431 to infra-vite-env-fixture June 13, 2026 11:02
@wan9chi wan9chi changed the title feat(cache): runner-aware auto output tracking + ignore consumption feat(cache): consume runner ignore reports for auto outputs Jun 13, 2026
chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Jun 13, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1b5aa54ae5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread crates/vite_task/src/session/execute/cache_update.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread crates/vite_task/src/session/execute/cache_update.rs Outdated
Comment on lines +268 to +269
if let Some(rel) = p.strip_prefix(workspace_root).ok().flatten() {
return Some(rel);

@chatgpt-codex-connector chatgpt-codex-connector Bot Jun 13, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Normalize reported ignore paths before matching fspy paths

The reported path is stored immediately after strip_prefix, but client-side relative paths are only joined with the cwd and may still contain .. components. fspy accesses are cleaned in TrackedPathAccesses::from_raw, so an ignore such as ignoreInput('../node_modules/.cache') from a package records packages/app/../node_modules/.cache and will not match the observed node_modules/.cache/..., causing the runner to fingerprint/archive paths the tool explicitly asked to ignore.

Useful? React with 👍 / 👎.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
This was referenced Jun 13, 2026
refactor(plan): rename spawn env map #452
Merged
feat(cache): fingerprint tracked getEnv reads #454
Merged
feat(client): add tracked option for env IPC #458
Merged
feat(cache): honor runner ignored outputs #459
Merged
feat(cache): add explicit auto output tracking #460
Merged
feat(cache): default outputs to automatic tracking #461
Merged
test(e2e): verify Vite auto output restoration #462
Merged
docs: consolidate runner-aware changelog entries #463
Merged
refactor(path): normalize AbsolutePath strip_prefix #464
Merged
@wan9chi @codex
feat(cache): honor runner ignored inputs
b300e23
Co-authored-by: GPT-5 Codex <[email protected]>
@wan9chi Graphite App

wan9chi commented Jun 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Merge activity

  • Jun 15, 1:30 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 15, 1:30 AM UTC: @wan9chi merged this pull request with Graphite.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@wan9chi wan9chi mentioned this pull request Nov 4, 2026
☂️ Cache tools that maintain their own cache #929
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

read-write overlap Caching tasks that read and write the same paths

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@wan9chi
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.