This commit is contained in:
Naveen 2026-01-30 23:54:14 +08:00 committed by GitHub
commit c64c5a57ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -108,6 +108,12 @@ describe("buildGatewayReloadPlan", () => {
expect(plan.noopPaths).toContain("gateway.remote.url"); expect(plan.noopPaths).toContain("gateway.remote.url");
}); });
it("treats meta.lastTouchedAt as no-op", () => {
const plan = buildGatewayReloadPlan(["meta.lastTouchedAt"]);
expect(plan.restartGateway).toBe(false);
expect(plan.noopPaths).toContain("meta.lastTouchedAt");
});
it("defaults unknown paths to restart", () => { it("defaults unknown paths to restart", () => {
const plan = buildGatewayReloadPlan(["unknownField"]); const plan = buildGatewayReloadPlan(["unknownField"]);
expect(plan.restartGateway).toBe(true); expect(plan.restartGateway).toBe(true);

View File

@ -77,6 +77,7 @@ const BASE_RELOAD_RULES_TAIL: ReloadRule[] = [
{ prefix: "session", kind: "none" }, { prefix: "session", kind: "none" },
{ prefix: "talk", kind: "none" }, { prefix: "talk", kind: "none" },
{ prefix: "skills", kind: "none" }, { prefix: "skills", kind: "none" },
{ prefix: "meta", kind: "none" },
{ prefix: "plugins", kind: "restart" }, { prefix: "plugins", kind: "restart" },
{ prefix: "ui", kind: "none" }, { prefix: "ui", kind: "none" },
{ prefix: "gateway", kind: "restart" }, { prefix: "gateway", kind: "restart" },