Skip to content

Commit de5517c

Browse files
ralyodioclaude
andauthored
fix(pods): never downgrade AGENTBBS_POD_IMAGE on a transient build failure (#54)
The deploy's rootless-podman context intermittently fails (pre-pull/build/even image-exists), which made setup.sh upsert AGENTBBS_POD_IMAGE back to the base ubuntu and silently strip Claude Code/Codex from pods. Only upsert when we actually have localhost/agentbbs-pod:latest; otherwise leave the configured value untouched (the agentbbs daemon uses the local image from its own session). Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f5d3740 commit de5517c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

setup.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,13 @@ upsert_env() { # KEY VALUE — skips when VALUE is empty
451451
}
452452
# CoinPay: API key (read by the coinpay CLI) + merchant/business id.
453453
# Point existing installs at the freshly built member pod image (fresh installs
454-
# get it from the env-file template below).
455-
upsert_env AGENTBBS_POD_IMAGE "$POD_IMAGE"
454+
# get it from the env-file template below). Only when we actually have the custom
455+
# image — a transient podman failure in the deploy's rootless context must never
456+
# downgrade a working install back to the base ubuntu (the daemon builds/uses the
457+
# image from its own session regardless).
458+
if [ "$POD_IMAGE" = "localhost/agentbbs-pod:latest" ]; then
459+
upsert_env AGENTBBS_POD_IMAGE "$POD_IMAGE"
460+
fi
456461
upsert_env COINPAY_API_KEY "${COINPAY_API_KEY:-}"
457462
upsert_env AGENTBBS_COINPAY_MERCHANT_ID "${COINPAY_MERCHANT_ID:-${AGENTBBS_COINPAY_MERCHANT_ID:-}}"
458463
upsert_env COINPAY_BUSINESS_ID "${COINPAY_MERCHANT_ID:-${AGENTBBS_COINPAY_MERCHANT_ID:-}}"

0 commit comments

Comments
 (0)