fix(IW-556): keep the developer's tmux config out of the plumbing test #574
No reviewers
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli!574
Loading…
Reference in a new issue
No description provided.
Delete branch "IW-556"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
test/start.batscase "the tmux session does not carry iw's internal plumbing" failed on a developer machine at every run:IW_HOMEwas absent from the pane.Cause.
-L <socket>isolates the tmux socket, not the config. The test's server still read~/.config/tmux/tmux.conf, and that config runsset-environment -gu IW_HOMEon purpose, so fish supplies a live value.iwwas correct; the test depended on the developer's config.Fix. The case runs
iw startwithHOME="$TEST_PARENT", which holds no tmux or fish config.TmuxAdapterdoes not change.Rejected:
new-session -e IW_HOME=…inTmuxAdapter: it freezesIW_HOMEin each session, which that config prevents on purpose.XDG_CONFIG_HOME: tmux 3.6a still reads~/.config/tmux/tmux.conf.-f /dev/null: the pane would hold the test's environment, so the case would no longer testsessionEnv.Defects
start.bats(Defect 1 of the analysis).iw starton a tmux server that already runs gives the pane that server'sIW_*values (Defect 2).review-state update --append-artifactduplicates an artifact.Testing
sessionEnvatcore/adapters/Tmux.scala:74: droppingIW_HOMEfails the case (line 145); keeping everyIW_*name fails it (line 142). Both reverted.bats test/start.bats: 6/6 pass../iw ./test e2e: exit 0. Pre-commit and pre-push hooks (format, scalafix, compile with warnings as errors, unit tests): pass.Release notes are not included: the change touches a test only.
Closes #556
🤖 Generated with Claude Code