fix(microvm): the relay URL must survive the login profile; deploy.sh must not ship a target symlink
deploy / test (push) Successful in 5m25s
deploy / build (push) Successful in 6m12s

- The first relayed kimi mission (01a0cfc3) bound the node relay, yet the guest
  dialled api.kimi.com through egress with the proxy token: the turn runs in a
  login shell that sources /etc/profile.d/00-image-env.sh (the image's ENV),
  which re-exports the glm/kimi images' baked ANTHROPIC_BASE_URL over ours. The
  turn command now re-exports the base URL after the profile. No key leaked —
  the guest had only the token — but relayed kimi/glm missions could not run.
- deploy.sh excluded `target/`, which matches only a directory; a workstation
  whose target is a symlink copied it to the build host, breaking its builds.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
Omar Sobh
2026-09-23 14:41:30 -05:00
co-authored by Claude Opus 5.5
parent af70c5416e
commit eb1137ed68
2 changed files with 37 additions and 2 deletions
+5 -1
View File
@@ -90,7 +90,11 @@ load_if_changed() {
}
echo "→ sync to $BUILD_HOST"
rsync -az --delete --exclude target/ --exclude node_modules/ --exclude .git/ \
# `target`, not `target/`: a trailing slash matches only a DIRECTORY, and a
# workstation whose target is a symlink (to an external drive) copied that
# symlink over the build host's, leaving it pointing at a path that does not
# exist there — every build since 2026-08-15 failed with "Not a directory".
rsync -az --delete --exclude target --exclude node_modules/ --exclude .git/ \
--exclude '.next/' --exclude 'frontend/public/dl/' --exclude '**/.DS_Store' \
./ "$BUILD_HOST":~/clawmates/