fix(qa): preserve image parity plugin allowlist

This commit is contained in:
Peter Steinberger
2026-04-23 02:16:29 +01:00
parent f78fc61768
commit 5e172b3888
3 changed files with 5 additions and 3 deletions

View File

@@ -30,7 +30,6 @@ describe("QA provider image generation config", () => {
"qa-channel",
]);
});
it("uses the selected mock provider for AIMock image generation", () => {
const patch = buildQaImageGenerationConfigPatch({
providerMode: "aimock",

View File

@@ -108,7 +108,6 @@ describe("qa suite runtime agent media helpers", () => {
expect(waitForGatewayHealthyMock).toHaveBeenCalled();
expect(waitForTransportReadyMock).toHaveBeenCalledWith(expect.anything(), 60_000);
});
it("preserves plugins already allowed by the gateway when configuring media", async () => {
readConfigSnapshotMock.mockResolvedValue({
hash: "hash",

View File

@@ -50,6 +50,9 @@ steps:
- set: originalToolsDeny
value:
expr: "originalTools ? (Object.prototype.hasOwnProperty.call(originalTools, 'deny') ? structuredClone(originalTools.deny) : undefined) : undefined"
- set: originalImageGenerationModelPrimary
value:
expr: "original.config.agents?.defaults?.imageGenerationModel?.primary ?? null"
- set: denied
value:
expr: "Array.isArray(originalToolsDeny) ? originalToolsDeny.map((entry) => String(entry)) : []"
@@ -112,7 +115,8 @@ steps:
agents:
defaults:
imageGenerationModel:
primary: openai/gpt-image-1
primary:
ref: originalImageGenerationModelPrimary
sessionKey:
ref: sessionKey
note: