Task command delegating to `vp run <script>` silently loses task-level caching
@wan9chi is already working on this.
Since Jul 25, 2026.
Assessment
This issue has not been assessed yet.
Description
Describe the bug
A vite.config.ts task whose command is vp run <package.json script> behaves as a pass-through alias:
- It drops the "cached-by-default" behavior
vp run -vsays "Cache disabled in task configuration" (the script's uncached default wins)
=> The task executes on every run.
The identical underlying command inlined in the task, or dispatched via pnpm --filter in a workspace, caches normally.
Expected:
- Either the config task caches its command like any other (preferred)
- Or the aliasing is documented and warned about
Reproduction
see text
Steps to reproduce
package.json
{
"name": "repro-package-json",
"private": true,
"scripts": {
"gen": "node -e \"console.log('generated')\""
}
}
vite.config.ts
export default {
run: {
tasks: {
"outer-alias": { command: "vp run gen" }, // never caches
"outer-direct": { command: "node -e \"console.log('generated')\"" }, // caches
},
},
};
When running:
outer-aliasexecuted both runsouter-directgot "cache hit, 50ms saved" on the second)
System Info
vp version 0.2.2
Used Package Manager
pnpm
Logs
-
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
- Dominant language
- Rust
- Stars
- 5.8k
- Forks
- 263
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 148
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from voidzero-dev/vite-plus
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
voidzero-dev/vite-plus#2097 · 10 comments · 2 reactions ·
-
pending triage
Difficulty 5/5 Over a week Newbie friendliness 45/100
voidzero-dev/vite-plus#2781 · 2 reactions ·
-
enhancement
voidzero-dev/vite-plus#2766 · 4 comments · 1 reaction · 1 assignee ·
-
enhancement
voidzero-dev/vite-plus#2764 · 3 comments · 1 assignee ·
-
pending triage
Difficulty 3/5 1-2 days Newbie friendliness 68/100
voidzero-dev/vite-plus#2735 ·
All issues in voidzero-dev/vite-plus
Similar issues
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
n0-computer/iroh#4550 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
paritytech/zombienet-sdk#591 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
farion1231/cc-switch#7638 · 1 comment ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100