mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:00:42 +00:00
fix(gateway): sync dirty plugin metadata in watch mode
This commit is contained in:
@@ -798,7 +798,10 @@ const writeBuildStamp = (deps) => {
|
||||
}
|
||||
};
|
||||
|
||||
const shouldSkipCleanWatchRuntimeSync = (deps) => deps.env.OPENCLAW_WATCH_MODE === "1";
|
||||
const shouldSkipWatchRuntimeSync = (deps, requirement) =>
|
||||
deps.env.OPENCLAW_WATCH_MODE === "1" &&
|
||||
requirement.reason === "missing_runtime_postbuild_stamp" &&
|
||||
hasDirtyRuntimePostBuildInputs(deps) !== true;
|
||||
|
||||
const isGatewayClientCommand = (args) =>
|
||||
args[0] === "gateway" && (args[1] === "call" || args[1] === "status");
|
||||
@@ -885,9 +888,12 @@ export async function runNodeMain(params = {}) {
|
||||
return await closeRunNodeOutputTee(deps, exitCode);
|
||||
}
|
||||
if (!buildRequirement.shouldBuild) {
|
||||
if (!useExistingGatewayClientDist && !shouldSkipCleanWatchRuntimeSync(deps)) {
|
||||
if (!useExistingGatewayClientDist) {
|
||||
const runtimePostBuildRequirement = resolveRuntimePostBuildRequirement(deps);
|
||||
if (runtimePostBuildRequirement.shouldSync) {
|
||||
if (
|
||||
runtimePostBuildRequirement.shouldSync &&
|
||||
!shouldSkipWatchRuntimeSync(deps, runtimePostBuildRequirement)
|
||||
) {
|
||||
const synced = await withRunNodeBuildLock(deps, async () => {
|
||||
const lockedRuntimePostBuildRequirement = resolveRuntimePostBuildRequirement(deps);
|
||||
if (!lockedRuntimePostBuildRequirement.shouldSync) {
|
||||
|
||||
Reference in New Issue
Block a user