shell-integration: preserve fish SSH feature variants - #117
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Fish SSH integration now checks ChangesSSH wrapper integration
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR fixes the fish SSH wrapper feature guard. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (1): Last reviewed commit: "shell-integration: preserve fish SSH fea..." | Re-trigger Greptile |
Fix the fish-shell condition added by #115 so
ssh-envby itself still installs the Ghostty SSH wrapper.Fish evaluates semicolon-chained
and/orcommands left-to-right. Repeating theGHOSTTY_BINguard in a single condition therefore made the finalssh-terminfocheck override a successfulssh-envcheck. Nest the feature disjunction below the executable guard so each feature works independently.Focused proof in manaflow-ai/cmux#8109 sources the real fish integration and verifies
ssh-env,ssh-terminfo, and both feature flags against a host-provided executable path. The test failed with exit 97 (fish SSH wrapper was not installed) before this change and passes after it.Validation:
python3 tests/test_issue_8093_ghostty_ssh_binary_path.py(from cmux checkout)fish --no-config --no-execute src/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fishNeed help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by cubic
Fix the fish SSH wrapper so
ssh-envandssh-terminfowork independently. The wrapper now installs when either feature is enabled, aligning with issue 8093’s feature precedence.test -n "$GHOSTTY_BIN"guard to avoid fish’s left-to-rightand/orprecedence overridingssh-env.ssh-envadds--forward-env=false; missingssh-terminfoadds--terminfo=false.Written for commit 84555c3. Summary will update on new commits.