fix(update): suppress internal handoff version warnings

This commit is contained in:
Vincent Koc
2026-05-24 21:42:39 +02:00
parent 0acc3e3216
commit 6cc8244333
5 changed files with 65 additions and 7 deletions

View File

@@ -2950,7 +2950,10 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {
process.env.OPENCLAW_COMPATIBILITY_HOST_VERSION = (await readPackageVersion(root)) ?? VERSION;
let postCoreConfigSnapshot = await readConfigFileSnapshot({ skipPluginValidation: true });
let postCoreConfigSnapshot = await readConfigFileSnapshot({
skipPluginValidation: true,
suppressFutureVersionWarning: true,
});
const preUpdateSourceConfig = await readPostCorePreUpdateSourceConfig({
sourceConfigPath: process.env[POST_CORE_UPDATE_SOURCE_CONFIG_PATH_ENV],
currentSnapshot: postCoreConfigSnapshot,
@@ -3416,7 +3419,10 @@ export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {
let postUpdateConfigSnapshot =
result.status === "ok" && !opts.dryRun
? await readConfigFileSnapshot({ skipPluginValidation: true })
? await readConfigFileSnapshot({
skipPluginValidation: true,
suppressFutureVersionWarning: shouldResumePostCoreInFreshProcess,
})
: configSnapshot;
if (!shouldResumePostCoreInFreshProcess) {
postUpdateConfigSnapshot = await persistRequestedUpdateChannel({