Commit f55ae1a
fix(daemon): self-review fixes for sandbox 503 gate
Two issues found reviewing the previous commit:
1. A permanently-failed env (e.g. no dev.ts) would now return 503 and
loop the activator forever, since the env can never become ready.
Restore the original 424 for that case via isWorkerDisabled(); only a
still-booting worker gets 503.
2. The optional warmup request went through the same 5s gate, so it was
503'd before it could JIT-compile/render the entry route — defeating
its purpose. Warmup requests (x-deco-warmup header) now bypass the
gate and block until the worker is fully ready, like normal mode.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 27c029d commit f55ae1a
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
| |||
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
122 | 136 | | |
123 | 137 | | |
124 | 138 | | |
| |||
0 commit comments