mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-25 23:04:27 +00:00
Summary: When a user shell hook returned an error, Zed would fail to load the shell environment even if the captured environment output was still valid. This could prevent the terminal panel and other shell-dependent features, such as the debugger and agent panel, from creating terminals or running commands. That is especially disruptive when the shell environment is valid and a terminal could otherwise still be used. Zed now ignores the non-zero shell exit in this case when it can still parse a valid shell environment, allowing those features to continue working. Self-Review Checklist: - [x] I have reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - Fixed shell environment loading when login shells exit non-zero after printing environment variables. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| LICENSE-APACHE | ||