fix: sync protocol outputs

This commit is contained in:
Peter Steinberger
2026-01-18 08:58:41 +00:00
parent 4de3c3a028
commit b015c7e5ad
9 changed files with 85 additions and 29 deletions

View File

@@ -130,9 +130,7 @@ export const execApprovalsHandlers: GatewayRequestHandlers = {
const currentSocketPath = snapshot.file.socket?.path?.trim();
const currentToken = snapshot.file.socket?.token?.trim();
const socketPath =
normalized.socket?.path?.trim() ??
currentSocketPath ??
resolveExecApprovalsSocketPath();
normalized.socket?.path?.trim() ?? currentSocketPath ?? resolveExecApprovalsSocketPath();
const token = normalized.socket?.token?.trim() ?? currentToken ?? "";
const next: ExecApprovalsFile = {
...normalized,

View File

@@ -9,9 +9,8 @@ const mocks = vi.hoisted(() => ({
}));
vi.mock("../../config/config.js", async () => {
const actual = await vi.importActual<typeof import("../../config/config.js")>(
"../../config/config.js",
);
const actual =
await vi.importActual<typeof import("../../config/config.js")>("../../config/config.js");
return {
...actual,
loadConfig: () => ({}),