From dffb4811aa279f9b50a409252d06f917bf440c07 Mon Sep 17 00:00:00 2001 From: Corfirean Date: Fri, 2 Oct 2026 21:45:56 +0500 Subject: [PATCH] fix(update): add the new module config keys before the update's check start Co-Authored-By: Claude Sonnet 5.5 --- crates/coa-core/src/update.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/coa-core/src/update.rs b/crates/coa-core/src/update.rs index dc151a7..2d9be39 100644 --- a/crates/coa-core/src/update.rs +++ b/crates/coa-core/src/update.rs @@ -484,6 +484,13 @@ impl Env for RepackEnv<'_> { fn validate(&self) -> Result<()> { use crate::process::{observe, ServiceState}; + // The check start is the first start of the new build: give the module configs the settings the update added + // (as a normal start does), or the server logs a "missing property" line for every one of them. + if let Ok((_, meta)) = crate::registry::MetaDir::open(self.meta_dir) { + if meta.kind == crate::registry::InstallKind::New { + let _ = crate::config::materialize_module_configs(self.root); + } + } let started = crate::driver::run(self.root, crate::driver::Verb::StartAll)?; let ports = crate::layout::read_ports(self.root); let healthy = started.ok && {