Skip to content

Commit 7cc3412

Browse files
lpcoxCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent a1aa098 commit 7cc3412

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

containers/agent/api-proxy-health-check.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,13 @@ if [ -n "$COPILOT_API_URL" ]; then
140140
# Verify COPILOT_PROVIDER_BASE_URL matches the sidecar URL when set (offline+BYOK mode)
141141
if [ -n "$COPILOT_PROVIDER_BASE_URL" ]; then
142142
echo "[health-check] COPILOT_PROVIDER_BASE_URL=$COPILOT_PROVIDER_BASE_URL (offline+BYOK mode)"
143+
if [ "$COPILOT_PROVIDER_BASE_URL" != "$COPILOT_API_URL" ]; then
144+
echo "[health-check][ERROR] COPILOT_PROVIDER_BASE_URL does not match COPILOT_API_URL"
145+
echo "[health-check][ERROR] COPILOT_PROVIDER_BASE_URL=$COPILOT_PROVIDER_BASE_URL"
146+
echo "[health-check][ERROR] COPILOT_API_URL=$COPILOT_API_URL"
147+
exit 1
148+
fi
149+
echo "[health-check] ✓ COPILOT_PROVIDER_BASE_URL matches COPILOT_API_URL"
143150
echo "[health-check] ✓ Copilot CLI offline+BYOK mode configured"
144151
fi
145152

0 commit comments

Comments
 (0)