Repository navigation
fix(all-npm): preserve caller environment when stopping the daemon - #5147
Merged
nicoloboschi merged 2 commits intoOct 6, 2026
Merged
nicoloboschi merged 2 commits into
nicoloboschi merged 2 commits into
Conversation
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
…fecycle test Review nit: the new test exercises start/stop, not construction, and sat above the construction cases it is unrelated to. Signed-off-by: Nicolò Boschi <boschi1997@gmail.com>
Collaborator
|
Thanks — reviewed and merging. The fix is right: One nit I pushed on top: the new regression test sat at the top of the |
This was referenced Oct 8, 2026
Merged
This was referenced Oct 16, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
HindsightServer.start()applies the caller'senvoverrides to profile creation and daemon startup, butstop()inherits only the parent environment. A caller-supplied CLIPATHor profile configuration location is consequently lost during shutdown, so the same wrapper may start a daemon successfully and fail to stop that daemon.Change
Pass the existing
buildEnv()result to the stop command, preserving the same overrides and filtering undefined values across all three lifecycle commands. No new option or subprocess mechanism is added.Validation
git diff --checkpass.uvxexecutable was not launched../scripts/hooks/lint.shwas attempted offline but stops duringuv syncbecause the sparse checkout omits thehindsight-allworkspace. Full monorepo lint remains unverified locally. Reused Vitest 3.2.4 rather than the exact declared 4.1.11 runner.AI assistance was used to investigate, implement and test this change.