Skip to content

fix(agent): preserve uploads during app bootstrap - #80

Merged
iamjr15 merged 1 commit into
mainfrom
fix/preserve-project-uploads
Jul 27, 2026
Merged

fix(agent): preserve uploads during app bootstrap#80
iamjr15 merged 1 commit into
mainfrom
fix/preserve-project-uploads

Conversation

@iamjr15

@iamjr15 iamjr15 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserves /uploads when the first template workspace is scaffolded
  • recognizes both src/app and app Expo Router layouts so valid projects are restored
  • reuses an existing pnpm installation and only installs when node_modules/.pnpm is missing

Context

Direct production QA showed a successful upload and visible composer chip, followed by an app-builder run that deleted the uploaded file and performed a redundant dependency install. The install then failed before the model could read the file.

Decisions

Decision Choice Reasoning
Upload persistence Exclude uploads from first-run template cleanup The project volume and R2 file record remain authoritative across chats
Workspace detection Accept src/app and app Both supported template layouts are valid and must not trigger destructive bootstrap
Dependency restore Install only when the pnpm virtual store is absent Persistent project workspaces should not reinstall on every prompt

Edge cases

  • first prompt uploads survive template scaffolding
  • existing Expo projects using either Router layout avoid destructive reset
  • missing dependency stores still take the existing install/recovery path
  • imported repository reset behavior is unchanged

Verification

  • pnpm turbo typecheck lint build — 76/76 tasks passed
  • production migration verifier already passes against the single migration file
  • repeat direct production upload, later-reference, and agent-read QA after deploy

No Linear issue or plan document is associated with this production QA fix.

Recognize both Expo Router layouts and retain project uploads while scaffolding first-run
templates. Reuse dependencies for an already-materialized workspace.
@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
cheatcode Skipped Skipped Jul 27, 2026 11:30am

@iamjr15
iamjr15 merged commit ef86735 into main Jul 27, 2026
6 checks passed
@iamjr15
iamjr15 deleted the fix/preserve-project-uploads branch July 27, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant