Preserve zsh tied PATH exports in shell snapshots - #34293
Merged
copyberry[bot] merged 1 commit intoJul 20, 2026
Merged
Conversation
## Why zsh prints tied scalar/array exports such as `PATH` and `path` with `-T` metadata. The snapshot filter rejected that syntax, so commands available only through the configured `PATH` could not be resolved from a restored snapshot. ## What changed - Recognize writable tied exports and retain them in zsh shell snapshots. - Skip readonly exports so restoring a snapshot does not make variables such as `PATH` immutable. ## Testing Added macOS coverage for restoring a tied `PATH`, handling entries with spaces, deduplicating path entries, excluding readonly tied exports, and resolving a command available only through the restored snapshot. GitOrigin-RevId: 297cfae3368230c7f6fe5ef84f0a10b35a2c802c
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/297cfae3368230c7f6fe5ef84f0a10b35a2c802c
branch
from
July 20, 2026 08:29
ee181fb to
2deed3f
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/297cfae3368230c7f6fe5ef84f0a10b35a2c802c
branch
July 20, 2026 08:31
michaelort33
temporarily deployed
to
issue-triage
July 20, 2026 08:37 — with
GitHub Actions
Inactive
michaelort33
temporarily deployed
to
issue-triage
July 20, 2026 08:37 — with
GitHub Actions
Inactive
michaelort33
temporarily deployed
to
issue-triage
July 20, 2026 08:37 — with
GitHub Actions
Inactive
michaelort33
temporarily deployed
to
issue-triage
July 20, 2026 08:39 — with
GitHub Actions
Inactive
mengxi0830-prog
temporarily deployed
to
issue-triage
July 20, 2026 08:44 — with
GitHub Actions
Inactive
mengxi0830-prog
temporarily deployed
to
issue-triage
July 20, 2026 08:44 — with
GitHub Actions
Inactive
mengxi0830-prog
temporarily deployed
to
issue-triage
July 20, 2026 08:44 — with
GitHub Actions
Inactive
tanwenjinsix
temporarily deployed
to
issue-triage
July 20, 2026 09:06 — with
GitHub Actions
Inactive
tanwenjinsix
temporarily deployed
to
issue-triage
July 20, 2026 09:06 — with
GitHub Actions
Inactive
tanwenjinsix
temporarily deployed
to
issue-triage
July 20, 2026 09:06 — with
GitHub Actions
Inactive
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.
Preserve zsh tied PATH exports in shell snapshots
Why
zsh prints tied scalar/array exports such as
PATHandpathwith-Tmetadata. The snapshot filter rejected that syntax, so commands available only
through the configured
PATHcould not be resolved from a restored snapshot.What changed
PATHimmutable.Testing
Added macOS coverage for restoring a tied
PATH, handling entries with spaces,deduplicating path entries, excluding readonly tied exports, and resolving a
command available only through the restored snapshot.