fix(setup): drop non-boolean activation switches from retained entries

A string such as enabled: "false" was kept and then accepted as the desired
entry, so setup could report success while doctor rejected the registration.
Those values are removed with the other managed switches.
This commit is contained in:
Cursor Agent
2026-10-12 21:35:28 -04:00
committed by xeropresence
parent 53ba7e7b31
commit ff34e7aeff
5 changed files with 40 additions and 9 deletions
+2 -2
View File
@@ -157,7 +157,7 @@ describe("setup workflow", () => {
`startup_timeout_sec, which setup sets to ${String(MCP_STARTUP_POLICY.codexStartupTimeoutSeconds)}`,
);
expect(result.plannedActions[0]?.detail).toContain(
"remote-server keys and switches that turn the server off, which are removed",
"non-boolean enabled or disabled values, which are removed",
);
expect(host.hopperInstalls).toBe(0);
expect(host.configurations).toBe(0);
@@ -214,7 +214,7 @@ describe("setup approval disclosure", () => {
`startup_timeout_sec, which setup sets to ${String(MCP_STARTUP_POLICY.codexStartupTimeoutSeconds)}`,
);
expect(result.plannedActions[0]?.detail).toContain(
"The entry disabled flag is kept.",
"A boolean entry disabled flag is kept.",
);
});