Skip to content

Commit 4e3f295

Browse files
committed
fix: preserve planless workspace cuts
1 parent 1b0cb42 commit 4e3f295

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

boatstack/internal/softwaredelivery/effects/artifacts.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,11 @@ func prepareArtifacts(layout ports.ControllerLayout, admission protocol.Admissio
304304
// worktree must observe those exact bytes rather than fall back to the inbox
305305
// and accidentally select new intent.
306306
func prepareWorkspacePlanTransfer(repositoryRoot, workspacePath, deliveryID, expectedPlanFingerprint string) ([]ports.ResourceMutation, error) {
307-
if workspacePath == "" || deliveryID == "" || expectedPlanFingerprint == "" {
308-
return nil, fmt.Errorf("workspace plan transfer requires workspace, delivery, and bound plan fingerprint")
307+
if expectedPlanFingerprint == "" {
308+
return nil, nil
309+
}
310+
if workspacePath == "" || deliveryID == "" {
311+
return nil, fmt.Errorf("workspace plan transfer requires workspace and delivery for a bound plan")
309312
}
310313
deliveryID, err := safeSegment(deliveryID, "delivery identity")
311314
if err != nil {

0 commit comments

Comments
 (0)