[app-server] Support hot-reload user config when batch writing config. (#13839)

- [x] Support hot-reload user config when batch writing config.
This commit is contained in:
Matthew Zeng
2026-03-08 17:38:01 -07:00
committed by GitHub
parent 1f150eda8b
commit a684a36091
10 changed files with 126 additions and 5 deletions

View File

@@ -734,6 +734,9 @@ pub struct ConfigBatchWriteParams {
pub file_path: Option<String>,
#[ts(optional = nullable)]
pub expected_version: Option<String>,
/// When true, hot-reload the updated user config into all loaded threads after writing.
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
pub reload_user_config: bool,
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, JsonSchema, TS)]