Commit cade5ac
authored
fix(agent): repair incomplete app dependencies (#82)
## Summary
- validates the runtime-specific dependency links before reusing a
persistent app workspace
- repairs interrupted pnpm installs instead of accepting a partial
`node_modules` tree
- gives mobile offline installation the same five-minute recovery window
as the network fallback
## Context
Post-deploy QA proved uploaded-file persistence and agent reads. A
mobile QA workspace damaged by the pre-fix destructive bootstrap still
had `node_modules/.pnpm` but lacked Expo web links, so the old coarse
restore check incorrectly treated it as complete.
## Decisions
| Decision | Choice | Reasoning |
|---|---|---|
| Restore readiness | Check concrete runtime dependencies | A
package-store directory alone does not prove usable symlinks |
| Recovery | Re-run the pinned install when links are incomplete | The
lockfile and snapshot store remain the clean source of truth |
| Timeout | Five minutes for mobile offline installs | Daytona volume
I/O can exceed the previous two-minute window |
## Verification
- [x] agent-worker lint, typecheck, and production dry-run build — 23/23
tasks passed
- [x] production upload/read flow passed in two newly created projects
- [ ] verify the damaged mobile QA workspace self-repairs after deploy
No database change or migration is included. No Linear issue or plan
document is associated with this production QA fix.1 parent ef86735 commit cade5ac
3 files changed
Lines changed: 18 additions & 9 deletions
File tree
- apps/agent-worker
- src/durable-objects
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| 602 | + | |
602 | 603 | | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
603 | 612 | | |
604 | 613 | | |
605 | | - | |
| 614 | + | |
606 | 615 | | |
607 | 616 | | |
608 | 617 | | |
| |||
0 commit comments