GeezerVison is showing github.com — fix(plan): serve runner getEnv from unfiltered env context by wan9chi · Pull Request #447 · voidzero-dev/vite-task
Conversation
wan9chi
commented
Jun 13, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Motivation
Runner-served getEnv values need to match the command context that planning and execution use, including command-prefix envs and enclosing nested vp run prefix envs. Serving only the cache-filtered child env hides undeclared prefix values from runner-aware tools.
Scope
Build on the spawn_envs naming cleanup by storing the unfiltered command env context on CacheMetadata for cached executions, then serve runner getEnv from that context. SpawnCommand::spawn_envs remains focused on the actual child process environment.
This PR intentionally does not add cache fingerprinting for runner-served env reads. That is handled by the next PR in the stack. The e2e fixture now uses one generic fetch_env.mjs <NAME> [...] helper and compares runner-served values with process.env for undeclared envs, command-prefix envs, and nested prefix envs.
Verification
cargo test -p vite_task_bin --test e2e_snapshots fetch_env -- --ignored
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
wan9chi
commented
Jun 13, 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.
This was referenced 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: c45b304dc4
ℹ️ 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.
Motivation:
Runner-served getEnv values need to match the command context that planning and execution use, including command-prefix envs and enclosing nested vp run prefix envs. Serving only the filtered child env can hide undeclared prefix values from tools.
Scope:
Build on the spawn_envs naming cleanup by storing the unfiltered command env context on CacheMetadata for cached executions, then serve runner getEnv from that context. This keeps SpawnCommand focused on process-spawn data and intentionally does not add cache fingerprinting for getEnv reads.
Verification:
- UPDATE_SNAPSHOTS=1 cargo test -p vite_task_bin --test e2e_snapshots fetch_env_sees_command_prefix_env -- --ignored
- UPDATE_SNAPSHOTS=1 cargo test -p vite_task_bin --test e2e_snapshots fetch_env_sees_intermediate_prefix_envs -- --ignored
- cargo test -p vite_task_bin --test e2e_snapshots fetch_env_sees_command_prefix_env -- --ignored
- cargo test -p vite_task_bin --test e2e_snapshots fetch_env_sees_intermediate_prefix_envs -- --ignored
- cargo check -p vite_task_plan -p vite_task -p vite_task_bin
- cargo test -p vite_task_plan envs::tests
- cargo test -p vite_task_plan --test plan_snapshots
wan9chi
changed the title
fix(plan): resolve runner getEnv from spawn env context
fix(plan): serve runner getEnv from unfiltered env context
Jun 14, 2026
wan9chi
commented
Jun 14, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Merge activity
- Jun 14, 2:25 AM UTC: A user started a stack merge that includes this pull request via Graphite.
- Jun 14, 2:25 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.
wan9chi
added a commit
that referenced
this pull request
Jun 14, 2026
Motivation:
Revert the accidental merge of #448 so the tracked getEnv fingerprinting change can return as a normal reviewed PR instead of being landed out of order.
Scope:
This is a mechanical revert of the #448 squash commit (`2055bb0c`). It removes the tracked getEnv fingerprinting implementation and e2e coverage that #448 introduced, returning `main` to the #447 state.
Verification:
- CI
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.
|