GeezerVison is showing github.com — feat(cache): honor runner ignored inputs by wan9chi · Pull Request #431 · voidzero-dev/vite-task
Conversation
wan9chi
commented
Jun 7, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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
wan9chi
commented
Jun 7, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
wan9chi
added a commit
to voidzero-dev/vite-plus
that referenced
this pull request
Jun 7, 2026
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
added a commit
that referenced
this pull request
Jun 11, 2026
… 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]>
This was referenced Jun 11, 2026
This was referenced Jun 13, 2026
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
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.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+268
to
+269
|
|
if let Some(rel) = p.strip_prefix(workspace_root).ok().flatten() {
|
|
|
return Some(rel);
|
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.
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.
This was referenced Jun 13, 2026
wan9chi
commented
Jun 15, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|