Skip to content

fix: expose INIT_CWD to tasks#493

Closed
wyf027 wants to merge 1 commit into
voidzero-dev:mainfrom
wyf027:codex/add-init-cwd-env
Closed

fix: expose INIT_CWD to tasks#493
wyf027 wants to merge 1 commit into
voidzero-dev:mainfrom
wyf027:codex/add-init-cwd-env

Conversation

@wyf027

@wyf027 wyf027 commented Jun 28, 2026

Copy link
Copy Markdown

Summary

  • Set INIT_CWD from the directory where vt was invoked before task planning/execution.
  • Include INIT_CWD in the default untracked env passthrough set so cached tasks can read it.
  • Add an e2e fixture that runs a cached task from packages/app/src and verifies the task process receives that invocation directory even though the task itself runs from packages/app.

Closes #243.

Tests

  • cargo fmt --all --check
  • cargo test -p vite_task_bin --test e2e_snapshots init_cwd
  • cargo test -p vite_task_graph

@fengmk2 fengmk2 closed this Jun 28, 2026
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.

add INIT_CWD environment variable

2 participants