fix: dedupe config future-version warning per process (#75927) · openclaw/openclaw@c8fe007
RomneyDa
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -21,6 +21,7 @@ Docs: https://docs.openclaw.ai
|
21 | 21 | |
22 | 22 | ### Fixes |
23 | 23 | |
| 24 | +- Config: log the "newer OpenClaw" version warning once per process instead of once per config snapshot read. (#75927) Thanks @romneyda. |
24 | 25 | - Gateway/chat history: merge Claude CLI transcript imports for Anthropic-routed sessions that still have a Claude CLI binding, so local chat history does not hide CLI JSONL turns. Fixes #75850. Thanks @alfredjbclaw. |
25 | 26 | - Media: trim serialized JSON suffixes after local `MEDIA:` directive file extensions, so generated-image metadata cannot pollute the parsed media path and cause false `ENOENT` delivery failures. Fixes #75182. Thanks @TnzGit and @hclsys. |
26 | 27 | - Cron: make scheduler reload schedule comparison tolerate malformed persisted jobs, so one bad cron entry no longer aborts the whole tick. Fixes #75886. Thanks @samfox-ai. |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -156,6 +156,7 @@ type ShippedPluginInstallConfigReadMigration = {
|
156 | 156 | |
157 | 157 | const CONFIG_HEALTH_STATE_FILENAME = "config-health.json"; |
158 | 158 | const loggedInvalidConfigs = new Set<string>(); |
| 159 | +const warnedFutureTouchedVersions = new Set<string>(); |
159 | 160 | |
160 | 161 | type ConfigHealthFingerprint = { |
161 | 162 | hash: string; |
@@ -952,6 +953,10 @@ function warnIfConfigFromFuture(cfg: OpenClawConfig, logger: Pick<typeof console
|
952 | 953 | return; |
953 | 954 | } |
954 | 955 | if (shouldWarnOnTouchedVersion(VERSION, touched)) { |
| 956 | +if (warnedFutureTouchedVersions.has(touched)) { |
| 957 | +return; |
| 958 | +} |
| 959 | +warnedFutureTouchedVersions.add(touched); |
955 | 960 | logger.warn( |
956 | 961 | `Config was last written by a newer OpenClaw (${touched}); current version is ${VERSION}.`, |
957 | 962 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。