Skip to content

build: allow opting out of Vite Task caching via MERIT_TASK_CACHE - #104

Merged
dmprav merged 1 commit into
mainfrom
build/task-cache-opt-out
Nov 14, 2026
Merged

dmprav merged 1 commit into
mainfrom
build/task-cache-opt-out

Conversation

@dmprav

@dmprav dmprav commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Why

In environments that already run under a seccomp user-notify listener (cloud
agent sandboxes and WSL2), Vite Task's automatic file-tracking listener fails
with EBUSY when spawning workspace binaries such as tsc
(voidzero-dev/vite-plus#1643).
That breaks vp run tasks and pre-commit hooks unless --no-cache is passed
to every invocation.

What changed

  • vite.config.ts sets run.cache to false when MERIT_TASK_CACHE=off,
    leaving task caching unchanged everywhere else.
  • .agents/install-environment.sh exports MERIT_TASK_CACHE=off in ~/.bashrc
    for cloud agent shells.
  • docs/guides/verification.md documents MERIT_TASK_CACHE=off for WSL2 and
    sandboxed runners.

Follow-ups

  • Remove this opt-out once voidzero-dev/vite-plus#1643 is fixed upstream.

@greptile-apps

greptile-apps Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable defects were established.

Summary

Adds an environment-controlled opt-out from Vite Task caching.

  • Workspace tasks can turn off caching with an environment setting.

No actionable issues were established. Review was read-only; no runtime checks were run.

Reviews (1) · Last reviewed commit: "build: allow opting out of Vite Task cac..." · Reviewed by Greptile

Cloud sandboxes and WSL2 inherit a seccomp user-notify listener, which causes
Vite Task's automatic file-tracking listener to fail with EBUSY when spawning
workspace binaries such as tsc (voidzero-dev/vite-plus#1643).

Set run.cache to false in vite.config.ts when MERIT_TASK_CACHE=off, export it
in the cloud agent setup script, and document it in the verification guide.
@dmprav
dmprav force-pushed the build/task-cache-opt-out branch from d143cba to beb1cb6 Compare November 14, 2026 13:50
@dmprav
dmprav merged commit bfb5be0 into main Nov 14, 2026
4 of 5 checks passed
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