Closed 0xSage closed 1 month ago
We check the new nightly version with https://delta.jan.ai
endpoint. We are using the default timeout (10 seconds).
I think can set the timeout to 1 second, if connection timeouts, just not print any message on version update.
We check the new nightly version with
https://delta.jan.ai
endpoint. We are using the default timeout (10 seconds). I think can set the timeout to 1 second, if connection timeouts, just not print any message on version update.
Timeout to 1 s is a good workaround!
Q: I'm just wondering whether we need to check versions at the end of every command?
cortex
cortex -v
cortex start # Server start is an impt entrypoint to using cortex, and will call attention.
cortex run # Starting an interactive chat shell is another impt entrypoint to using cortex
COMMAND -h # Not annoying to put it in all the help commands as well
I'm not sure what the best fix is, but I do think shortening timeout to 1sec is a (good) but temporary patch to this issue.
cc @dan-homebrew
I would like to propose 2 approaches that can help to handle update check better:
server
has a longer lifetime than the CLI, so we can let server
checks the update instead of CLI. CLI only need to request local server
for the new update information. cc @dan-homebrew
Sure, open to the above.
Approach 1
: just add it in the .cortexrc file?
cc @dan-homebrew db-less design holds us back on certain things like this
My only request is that, UX wise, the following should inform users there is an available update:
cortex (-h)
cortex -v
Will add update info into .cortexrc
checkedForUpdateAt: time
latestRelease: version
Interval to check update:
nightly
: 10 minutesbeta
: 1 hourstable
: 24 hours
cc: @dan-homebrew @0xSage Will add update info into
.cortexrc
checkedForUpdateAt: time latestRelease: version
Interval to check update:
nightly
: 10 minutesbeta
: 1 hourstable
: 24 hours cc: @dan-homebrew @0xSage
Nice. Is this a cron job that we're always running on the users machine? Or only run when the next command is executed?
It only runs when the next CLI command is executed.
Closing as resolved. QA'd adn works really well 🙏
Flakey issue. Happens 1/3 times.
Steps:
cortex -v
or any command really