Commit f582a57
committed
fix: preserve internal env vars during /init EnvVars replacement
The EnvVars replace logic in SetData was deleting all keys from
a.defaults.EnvVars that weren't present in the incoming customer
config, including internal system vars like E2B_SANDBOX (set at
startup), E2B_SANDBOX_ID, E2B_TEMPLATE_ID (set by MMDS polling),
and E2B_EVENTS_ADDRESS (set by SetupHyperloop).
Added isInternalEnvVar() helper to exclude these system-managed
keys from deletion during the replace operation, ensuring they
persist across /init calls.1 parent d99c1d1 commit f582a57
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
191 | 192 | | |
192 | | - | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
400 | 412 | | |
401 | 413 | | |
402 | 414 | | |
| |||
0 commit comments