Add safe task workspace switching - #1214
Draft
mrubens wants to merge 3 commits into
Draft
Conversation
Contributor
|
No new code issues found. See task
Reviewed b9f70c3 |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Why
Environment selection was previously fixed when a task run started. If the wrong environment was selected, the task could not recover in place even when another configured environment had the required repositories. This adds an explicit, auditable transition instead of forcing users to abandon the task or broaden repository access.
Impact
For eligible active tasks, More actions → Change workspace now presents configured environments and performs the transition after safety checks. The initial version is intentionally limited to standard tasks launched from the web UI.
The transition is rejected while an agent turn is active or when the source workspace has dirty files, unpushed commits, or no upstream branch. Prompt and steering delivery are fenced once transition preparation begins.
Validation
pnpm lintpnpm check-typesFollow-ups