fix(setup): disclose remote-key removal in the approval plan
A local command entry still drops stale remote-server keys and off switches. The plan now says those fields are removed, and that Grok Build keeps its entry disabled flag.
This commit is contained in:
committed by
xeropresence
parent
502e665212
commit
0cd9f47ff1
@@ -153,12 +153,34 @@ describe("setup workflow", () => {
|
||||
"configure_client:codex",
|
||||
]);
|
||||
expect(result.plannedActions[0]?.detail).toContain(
|
||||
"replaced when that entry is remote",
|
||||
"Remote-server keys and switches that turn the server off are removed",
|
||||
);
|
||||
expect(host.hopperInstalls).toBe(0);
|
||||
expect(host.configurations).toBe(0);
|
||||
});
|
||||
|
||||
it("keeps Grok Build's entry disabled flag in the approval plan", async () => {
|
||||
const host = new FakeSetupHost();
|
||||
host.hopper = "/Applications/Hopper";
|
||||
host.skill = "unchanged";
|
||||
host.clients = [
|
||||
{
|
||||
name: "grok_build",
|
||||
displayName: "Grok Build",
|
||||
configPath: "/grok.toml",
|
||||
},
|
||||
];
|
||||
|
||||
const result = await runSetup(
|
||||
{ ...options(false), dryRun: true, clientIds: ["grok_build"] },
|
||||
host,
|
||||
);
|
||||
|
||||
expect(result.plannedActions[0]?.detail).toContain(
|
||||
"the entry disabled flag is kept",
|
||||
);
|
||||
});
|
||||
|
||||
it("installs Hopper when unattended authorization is explicit", async () => {
|
||||
const host = new FakeSetupHost("linux");
|
||||
host.distribution = {
|
||||
|
||||
Reference in New Issue
Block a user