File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments