自动升级,版本号与文本描述不符
What version of Kimi Code is running?
0.8.0
Which open platform/subscription were you using?
Which model were you using?
kimi-k2.6
What platform is your computer?
No response
What issue are you seeing?
$ kimi -y
Kimi Code Update Available
Kimi Code has a newer release ready.
[View changelog: https://moonshotai.github.io/kimi-code/en/release-notes/changelog.html](https://moonshotai.github.io/kimi-code/en/release-notes/changelog.html)
Current 0.5.0
Target 0.6.0
Source native
Command curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash
↑↓ choose · Enter confirm · Esc continue
❯ Install update now (0.6.0)
Continue with current version
==> Detected target: darwin-arm64
==> Resolving latest version from https://code.kimi.com/kimi-code/latest
==> Latest version: 0.8.0
==> Fetching manifest https://code.kimi.com/kimi-code/0.8.0/manifest.json
==> Downloading https://code.kimi.com/kimi-code/0.8.0/kimi-code-darwin-arm64
######################################################################## 100.0%
==> Verifying checksum
==> Backed up existing kimi to /Users/didi/.kimi-code/bin/kimi.bak
==> Installed to /Users/didi/.kimi-code/bin/kimi
==> /Users/didi/.kimi-code/bin already in PATH
==> Done. Run: kimi --version
Updated @moonshot-ai/kimi-code to 0.6.0. Restart the CLI to use the new version.
$ kimi --version
0.8.0
What steps can reproduce the bug?
我无法确定此前运行的版本是 0.5.0 还是 0.6.0 但进入 kimi 的时候提示是 从 0.5 升级到 0.6 ,升级完变成 0.8 了
What is the expected behavior?
No response
Additional information
No response
li@li-MS-7C94:~$ kimi Kimi Code Update Available Kimi Code has a newer release ready. View changelog: https://moonshotai.github.io/kimi-code/en/release-notes/changelog.html
Current 0.7.0 Target 0.8.0 Source native Command curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash
↑↓ choose · Enter confirm · Esc continue
❯ Install update now (0.8.0) Continue with current version ==> Detected target: linux-x64 ==> Resolving latest version from https://code.kimi.com/kimi-code/latest ==> Latest version: 0.9.0 ==> Fetching manifest https://code.kimi.com/kimi-code/0.9.0/manifest.json ==> Downloading https://code.kimi.com/kimi-code/0.9.0/kimi-code-linux-x64 ######################################################################## 100.0%######################################################################### 100.0% ==> Verifying checksum ==> Backed up existing kimi to /home/li/.kimi-code/bin/kimi.bak ==> Installed to /home/li/.kimi-code/bin/kimi ==> /home/li/.kimi-code/bin already in PATH ==> Done. Run: kimi --version Updated @moonshot-ai/kimi-code to 0.8.0. Restart the CLI to use the new version. li@li-MS-7C94:~$ kimi --version 0.9.0
依然存在
@liruifengv
@Lilin-sudo 在 https://github.com/MoonshotAI/kimi-code/pull/405 修复,还没发版。
实际检测原理是,在第一次启动的时候,后台检测最新版本,把版本号缓存在一个文件里。 这样做的目的是为了不在启动的时候发网络请求去检测,避免延迟太高,体验不好。
下次启动的时候会检测这个缓存文件,然后对比当前版本,再拉取最新版本。 因为我们发版太快了,如果过了一天没更新的话,就会出现现在的情况。
现在的解决方案是在每次启动的时候再请求刷新一下最新版本,1s 超时。
另外 0.8 之后有了自动更新机制,默认在后台自动更新,除非更新失败,就不会出现这个弹窗了