Repository navigation
Preserve runtime workspace roots across thread resume - #43848
Merged
copyberry[bot] merged 1 commit intoSep 8, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Resuming a thread should retain its selected workspace folders, including additional roots and explicit empty selections. Resume overrides also need to survive a subsequent resume when no turn has run. ## What changed - Persist `runtime_workspace_roots` in startup metadata and thread settings snapshots, separately from explicit environment selections and permission-profile roots. - Restore roots from the latest snapshot owned by the resumed thread, falling back to owned startup metadata only when no snapshot exists. Honor explicit `runtimeWorkspaceRoots` overrides, retarget the old `cwd` root when `cwd` changes, deduplicate roots, and validate restored paths for the current host. - Checkpoint effective settings on resume and restored settings after revert. Reload resume configuration if saved workspace roots change during loading. - Normalize Windows rollout path spellings when matching thread search results, preserving selection of the correct rollout after revert, including compressed rollouts. ## Testing Add regression coverage for workspace restoration, empty and explicit overrides, foreign paths, compaction and revert, resume checkpoints without recency changes, concurrent settings persistence, and rollout search path matching. GitOrigin-RevId: d98d9d34dd63934d441120916c61c12b69e7f062
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/d98d9d34dd63934d441120916c61c12b69e7f062
branch
from
September 8, 2026 16:25
ff55d6c to
6515a72
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/d98d9d34dd63934d441120916c61c12b69e7f062
branch
September 8, 2026 16:27
dylanyongxin-sys
temporarily deployed
to
issue-triage
September 8, 2026 16:29 — with
GitHub Actions
Inactive
dylanyongxin-sys
temporarily deployed
to
issue-triage
September 8, 2026 16:29 — with
GitHub Actions
Inactive
dylanyongxin-sys
temporarily deployed
to
issue-triage
September 8, 2026 16:29 — with
GitHub Actions
Inactive
kevinglh543-stack
temporarily deployed
to
issue-triage
September 8, 2026 16:36 — with
GitHub Actions
Inactive
kevinglh543-stack
temporarily deployed
to
issue-triage
September 8, 2026 16:36 — with
GitHub Actions
Inactive
kevinglh543-stack
temporarily deployed
to
issue-triage
September 8, 2026 16:36 — with
GitHub Actions
Inactive
kevinglh543-stack
temporarily deployed
to
issue-triage
September 8, 2026 16:37 — with
GitHub Actions
Inactive
fusiondownhole-admin
temporarily deployed
to
issue-triage
September 8, 2026 16:38 — with
GitHub Actions
Inactive
fusiondownhole-admin
temporarily deployed
to
issue-triage
September 8, 2026 16:38 — with
GitHub Actions
Inactive
fusiondownhole-admin
temporarily deployed
to
issue-triage
September 8, 2026 16:38 — with
GitHub Actions
Inactive
fusiondownhole-admin
temporarily deployed
to
issue-triage
September 8, 2026 16:40 — with
GitHub Actions
Inactive
This branch was previously deployed
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 runtime workspace roots across thread resume
Why
Resuming a thread should retain its selected workspace folders, including additional roots and explicit empty selections. Resume overrides also need to survive a subsequent resume when no turn has run.
What changed
runtime_workspace_rootsin startup metadata and thread settings snapshots, separately from explicit environment selections and permission-profile roots.runtimeWorkspaceRootsoverrides, retarget the oldcwdroot whencwdchanges, deduplicate roots, and validate restored paths for the current host.Testing
Add regression coverage for workspace restoration, empty and explicit overrides, foreign paths, compaction and revert, resume checkpoints without recency changes, concurrent settings persistence, and rollout search path matching.