Repository navigation
workspace(fix): Preserve the daemon environment - #190
Merged
Merged
Conversation
why: tmux copied update-environment entries from the planning client when it created a session. Window programs could lose the daemon's values before their manifest overrides were applied. what: - Leave the daemon environment in place when creating a session. - Check inherited and overridden values inside the window programs.
tony
force-pushed
the
workspace-daemon-env
branch
from
December 6, 2026 00:09
d339596 to
f5982bf
Compare
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.
Closes #176.
What changed, and why
tmux can copy the planning client’s environment into a new session. Workspace now retains the daemon environment when creating a session, then applies the manifest’s per-window overrides. Programs in separate windows verify both values.
Checks run
The regression reads the variables from inside the launched programs. The complete Workspace suite ran on pristine tmux 3.3 and upstream 3.8.
Review evidence
Workspace owns the environment passed when it creates a session. The regression starts two window programs and reads their environments, including an explicit per-window override.
With the topic tests and the runtime code from
d64ebc0dc, the focused check failed. The window program readclientwhere it expected the daemon’s valuedaemon. The focused test failed in 3.86 s and passed onf5982bf5fin 3.53 s.mix test --warnings-as-errors --max-cases 2 --seed 624498 test/workspace_test.exs:305frompackages/workspaceTool use
Codex extracted this change from #169 and ran the checks above on the topic branch. A separate Codex reviewer checked the component boundaries and the two corrected test fixtures.