Ideally, there should also be some sort of timeout (e.g. 1 second), so that if you're on a slow network connection, running generate doesn't take a long time (I've encountered this issue before when running zenstack generate while on a train with a spotty internet connection).
Potentially related to https://github.com/zenstackhq/zenstack/issues/1464
Ideally, there should also be some sort of timeout (e.g. 1 second), so that if you're on a slow network connection, running
generate
doesn't take a long time (I've encountered this issue before when runningzenstack generate
while on a train with a spotty internet connection).I wonder if it's worth just creating a custom version checker function, e.g. something like: https://github.com/promptfoo/promptfoo/blob/fb6cbce74b0d627c7a6811923cb4f4d983e5ff73/src/updates.ts
Both
get-latest-version
~andlatest-version
~ don't have timeouts. Edit:latest-version
seems to have a 10s timeout by default, but it's not possible to change.