cicy-desktop 2.1.74 → 2.1.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -975,9 +975,17 @@ function LocalTeamCard({ team, onOpen, onRename, onRefresh }) {
975
975
  const v = JSON.parse(r.body)?.version || null;
976
976
  setLatest(v);
977
977
  if (manual && v) {
978
- const behind = team.version && cmpVer(v, team.version) > 0;
979
- if (!behind) {
980
- setUpToDateMsg(`${tr("sidecar.upToDate", "已是最新")} v${team.version || v}`);
978
+ if (!team.version) {
979
+ // Current version UNKNOWN (daemon stopped, or health returned no
980
+ // version). Do NOT claim "已是最新" and NEVER show the latest as if
981
+ // it were the current version (the old `team.version || v` bug made
982
+ // it say "已是最新 v<latest>" while the running daemon was older).
983
+ setUpToDateMsg(`${tr("sidecar.latestVersionIs", "最新版本")} v${v}·${tr("sidecar.startToCompare", "启动后对比当前版本")}`);
984
+ setTimeout(() => setUpToDateMsg(""), 3500);
985
+ } else if (cmpVer(v, team.version) > 0) {
986
+ // Behind — the 更新 badge/button drives the upgrade; no toast here.
987
+ } else {
988
+ setUpToDateMsg(`${tr("sidecar.upToDate", "已是最新")} v${team.version}`);
981
989
  setTimeout(() => setUpToDateMsg(""), 2500);
982
990
  }
983
991
  }