Skip to content

remote: Use last line of uname and shell output#44165

Merged
Veykril merged 4 commits intomainfrom
fix-remote-platform-shell-int
Dec 5, 2025
Merged

remote: Use last line of uname and shell output#44165
Veykril merged 4 commits intomainfrom
fix-remote-platform-shell-int

Conversation

@agu-z
Copy link
Contributor

@agu-z agu-z commented Dec 4, 2025

We have seen cases (see #43694) where the user's shell initialization script includes text that ends up in the output of the commands we use to detect the platform and shell of the remote. This solution isn't perfect, but it should address the issue in most situations since both commands should only output one line.

Release Notes:

  • remote: Improve resiliency when initialization scripts output text

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 4, 2025
@zed-industries-bot
Copy link
Contributor

zed-industries-bot commented Dec 4, 2025

Messages
📖

This PR includes links to the following GitHub Issues: #43694
If this PR aims to close an issue, please include a Closes #ISSUE line at the top of the PR body.

Generated by 🚫 dangerJS against 53e918e

@agu-z
Copy link
Contributor Author

agu-z commented Dec 4, 2025

re danger: this PR does not close the whole issue, it just addresses something the user mentioned

@agu-z agu-z force-pushed the fix-remote-platform-shell-int branch from 3d6ac9a to 06ca026 Compare December 4, 2025 16:43
@agu-z agu-z requested a review from Veykril December 4, 2025 16:47
Copy link
Member

@Veykril Veykril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea we should've done this from the start after all. We'll need to do the same for WSL as well I think

@Veykril Veykril merged commit 822fc7e into main Dec 5, 2025
23 checks passed
@Veykril Veykril deleted the fix-remote-platform-shell-int branch December 5, 2025 13:04
@agu-z
Copy link
Contributor Author

agu-z commented Dec 5, 2025

/cherry-pick preview

github-actions bot pushed a commit that referenced this pull request Dec 5, 2025
We have seen cases (see
#43694) where the user's
shell initialization script includes text that ends up in the output of
the commands we use to detect the platform and shell of the remote. This
solution isn't perfect, but it should address the issue in most
situations since both commands should only output one line.

Release Notes:

- remote: Improve resiliency when initialization scripts output text
zed-zippy bot added a commit that referenced this pull request Dec 5, 2025
…ck to preview) (#44220)

Cherry-pick of #44165 to preview

----
We have seen cases (see
#43694) where the user's
shell initialization script includes text that ends up in the output of
the commands we use to detect the platform and shell of the remote. This
solution isn't perfect, but it should address the issue in most
situations since both commands should only output one line.

Release Notes:

- remote: Improve resiliency when initialization scripts output text

Co-authored-by: Agus Zubiaga <agus@zed.dev>
AlpSha pushed a commit to AlpSha/zed that referenced this pull request Dec 5, 2025
We have seen cases (see
zed-industries#43694) where the user's
shell initialization script includes text that ends up in the output of
the commands we use to detect the platform and shell of the remote. This
solution isn't perfect, but it should address the issue in most
situations since both commands should only output one line.

Release Notes:

- remote: Improve resiliency when initialization scripts output text
Veykril added a commit that referenced this pull request Dec 8, 2025
…l scripts (#44363)

Companion PR to #44165

Release Notes:

- N/A *or* Added/Fixed/Improved ...
CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
We have seen cases (see
zed-industries#43694) where the user's
shell initialization script includes text that ends up in the output of
the commands we use to detect the platform and shell of the remote. This
solution isn't perfect, but it should address the issue in most
situations since both commands should only output one line.

Release Notes:

- remote: Improve resiliency when initialization scripts output text
CherryWorm pushed a commit to CherryWorm/zed that referenced this pull request Dec 16, 2025
…l scripts (zed-industries#44363)

Companion PR to zed-industries#44165

Release Notes:

- N/A *or* Added/Fixed/Improved ...
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
We have seen cases (see
zed-industries#43694) where the user's
shell initialization script includes text that ends up in the output of
the commands we use to detect the platform and shell of the remote. This
solution isn't perfect, but it should address the issue in most
situations since both commands should only output one line.

Release Notes:

- remote: Improve resiliency when initialization scripts output text
someone13574 pushed a commit to someone13574/zed that referenced this pull request Dec 16, 2025
…l scripts (zed-industries#44363)

Companion PR to zed-industries#44165

Release Notes:

- N/A *or* Added/Fixed/Improved ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants