mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:30:44 +00:00
fix(qa): preserve image parity plugin allowlist
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user