Skip to content

Commit 576c83e

Browse files
committed
fix: satisfy code-mode MCP lint
1 parent f9045f7 commit 576c83e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎extensions/qa-lab/src/providers/mock-openai/server.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,14 +1854,14 @@ async function buildResponsesPayload(
18541854
return buildToolCallEventsWithArgs("wait", { runId: toolJson.runId });
18551855
}
18561856
if (
1857-
/MCP_CODE_MODE_FILE_TOOL_RESULT/.test(toolOutput) &&
1858-
/fixture-note-alpha/.test(toolOutput)
1857+
toolOutput.includes("MCP_CODE_MODE_FILE_TOOL_RESULT") &&
1858+
toolOutput.includes("fixture-note-alpha")
18591859
) {
18601860
return buildAssistantEvents(
18611861
"MCP_CODE_MODE_FILE_OK note=fixture-note-alpha unclear=none improvement=virtual-api-files-were-clear-and-needed-one-exec",
18621862
);
18631863
}
1864-
if (/MCP_CODE_MODE_FILE_TOOL_RESULT/.test(toolOutput)) {
1864+
if (toolOutput.includes("MCP_CODE_MODE_FILE_TOOL_RESULT")) {
18651865
return buildAssistantEvents(
18661866
"MCP_CODE_MODE_FILE_FAIL unclear=code-mode-exec-did-not-return-fixture-note",
18671867
);

‎src/agents/runtime-plan/tools.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ describe("AgentRuntimePlan tool policy helpers", () => {
136136
});
137137

138138
expect(result[0]).toBe(normalized);
139-
expect(getPluginToolMeta(result[0] as AgentTool)).toMatchObject({
139+
expect(getPluginToolMeta(result[0])).toMatchObject({
140140
pluginId: "bundle-mcp",
141141
mcp: {
142142
serverName: "fixture",

0 commit comments

Comments
 (0)