Skip to content

Prevent App Studio source loss from propagating as deletions - #1098

Merged
cwilhit merged 1 commit into
mainfrom
codex/app-studio-missing-source-guard
Nov 14, 2026
Merged

cwilhit merged 1 commit into
mainfrom
codex/app-studio-missing-source-guard

Conversation

@cwilhit

@cwilhit cwilhit commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

What happened

A Railgrid-dev App Studio rollout replaced the provider's emptyDir working copy. The Project still recorded its source revision and nine dirty paths. Development sync treated those paths as deletions and removed the surviving source from the dev sandbox.

Fix

Reject source snapshots when a previously recorded working tree is missing. Surface the same 503 reason as the file browser and guard both Git commit paths before they can turn missing files into deletions. Keep a present empty tree eligible for sync so an intentional deletion of the last file still works.

Validation

  • App Studio API, workspace, and project reconciler tests pass.
  • App Studio lint passes.
  • A disposable Git-free project in Railgrid-dev will verify that the sandbox files survive deployment and a subsequent sync attempt.

@cwilhit

cwilhit commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator Author

/approve

@railgrid-prow

railgrid-prow Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cwilhit

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cwilhit
cwilhit merged commit 2ec7c91 into main Nov 14, 2026
1 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant