Skip to content

Commit 3226cc6

Browse files
committed
fix: refresh WebUI with cache buster
1 parent 90ea918 commit 3226cc6

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

astrbot/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.25.3"
1+
__version__ = "4.25.6-rc.3"

astrbot/core/config/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from astrbot.core.computer.booters.cua_defaults import CUA_DEFAULT_CONFIG
66
from astrbot.core.utils.astrbot_path import get_astrbot_data_path
77

8-
VERSION = "4.25.6-rc.2"
8+
VERSION = "4.25.6-rc.3"
99
DB_PATH = os.path.join(get_astrbot_data_path(), "data_v4.db")
1010
PERSONAL_WECHAT_CONFIG_METADATA = {
1111
"weixin_oc_base_url": {

astrbot/core/updator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _build_core_package_url(self, version: str | None) -> str | None:
3232
"""Build the hosted core package URL for a release tag.
3333
3434
Args:
35-
version: Release tag, such as ``v4.26.6``.
35+
version: Release tag, such as ``v4.25.6``.
3636
3737
Returns:
3838
Public package URL, or None when hosted package download is disabled.

dashboard/src/layouts/full/vertical-header/VerticalHeader.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,12 @@ async function fetchAstrBotStartTime() {
570570
return startTime;
571571
}
572572
573+
function reloadWithCacheBuster() {
574+
const url = new URL(window.location.href);
575+
url.searchParams.set("_r", Date.now().toString());
576+
window.location.replace(url.toString());
577+
}
578+
573579
function waitForAstrBotRestart(
574580
initialStartTime: number | string | null,
575581
showWaiting = true,
@@ -600,7 +606,7 @@ function waitForAstrBotRestart(
600606
) {
601607
stopRestartPolling();
602608
restartWaiting.value = false;
603-
window.location.reload();
609+
reloadWithCacheBuster();
604610
}
605611
} catch (_error) {
606612
// Backend may be unavailable while the process is restarting.
@@ -730,7 +736,7 @@ function updateDashboard() {
730736
updateStatus.value = res.data.message;
731737
if (res.data.status == "ok") {
732738
setTimeout(() => {
733-
window.location.reload();
739+
reloadWithCacheBuster();
734740
}, 1000);
735741
}
736742
})

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "AstrBot"
3-
version = "4.25.6-rc.2"
3+
version = "4.25.6-rc.3"
44
description = "Easy-to-use multi-platform LLM chatbot and development framework"
55
readme = "README.md"
66
license = { text = "AGPL-3.0-or-later" }

0 commit comments

Comments
 (0)