Repository navigation
Strip zsh -lc wrapper from TUI command headers - #5374
Merged
Merged
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
hxreborn
force-pushed
the
fix/strip-zsh-lc-wrapper
branch
from
October 20, 2025 12:00
ab4ac08 to
ec58606
Compare
Extends shell wrapper stripping to handle zsh in addition to bash. Supports absolute paths like /usr/bin/zsh and /bin/bash. Closes openai#4201
hxreborn
force-pushed
the
fix/strip-zsh-lc-wrapper
branch
from
October 20, 2025 12:09
ec58606 to
9808d9b
Compare
Update test expectation to match the new behavior where zsh -lc wrapper is correctly stripped from command display.
pakrym-oai
approved these changes
Oct 20, 2025
Contributor
|
Thank you! |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Extends shell wrapper stripping in TUI to handle
zsh -lcin addition tobash -lc.Currently, Linux users (and macOS users with zsh profiles) see cluttered command headers like
• Ran zsh -lc "echo hello"instead of• Ran echo hello. This happens becausecodex-rs/tui/src/exec_command.rsonly checks for literal"bash", ignoringzshand absolute paths like/usr/bin/zsh.Changes:
is_login_shell_with_lchelper that extracts shell basename and matches againstbashorzsh/usr/bin/zsh,/bin/bash)Testing:
All 4 test cases pass (bash, zsh, and absolute paths for both).
Closes #4201