in src/index.ts [136:145]
async function updateIDEEndpoint() {
try {
cachedEndpoint = await findWorkingIDEEndpoint();
log(`Updated cachedEndpoint to: ${cachedEndpoint}`);
} catch (error) {
// If we fail to find a working endpoint, keep the old one if it existed.
// It's up to you how to handle this scenario (e.g., set cachedEndpoint = null).
log("Failed to update IDE endpoint:", error);
}
}