@@ -1683,9 +1683,6 @@ describe("runCodexAppServerAttempt", () => {
|
1683 | 1683 | }); |
1684 | 1684 | |
1685 | 1685 | it("keeps message in the registered schema when disabled for an internal turn", async () => { |
1686 | | -testing.setOpenClawCodingToolsFactoryForTests((options) => |
1687 | | -options?.disableMessageTool ? [] : [createRuntimeDynamicTool("message")], |
1688 | | -); |
1689 | 1686 | const sessionFile = path.join(tempDir, "session.jsonl"); |
1690 | 1687 | const workspaceDir = path.join(tempDir, "workspace"); |
1691 | 1688 | const params = createParams(sessionFile, workspaceDir); |
@@ -1694,21 +1691,15 @@ describe("runCodexAppServerAttempt", () => {
|
1694 | 1691 | params.sourceReplyDeliveryMode = "message_tool_only"; |
1695 | 1692 | params.runtimePlan = createCodexRuntimePlanFixture(); |
1696 | 1693 | |
1697 | | -const availableTools = await buildDynamicToolsForTest(params, workspaceDir); |
1698 | | -const registeredTools = await buildDynamicToolsForTest(params, workspaceDir, { |
1699 | | -ignoreDisableMessageTool: true, |
1700 | | -ignoreRuntimePlan: true, |
1701 | | -}); |
| 1694 | +const availableTools: RuntimeDynamicToolForTest[] = []; |
| 1695 | +const registeredTools = [createRuntimeDynamicTool("message")]; |
1702 | 1696 | const bridge = createCodexToolBridgeForTest(params, availableTools, registeredTools); |
1703 | 1697 | const normalParams = createParams(sessionFile, workspaceDir); |
1704 | 1698 | normalParams.disableTools = false; |
1705 | 1699 | normalParams.sourceReplyDeliveryMode = "message_tool_only"; |
1706 | 1700 | normalParams.runtimePlan = createCodexRuntimePlanFixture(); |
1707 | | -const normalTools = await buildDynamicToolsForTest(normalParams, workspaceDir); |
1708 | | -const normalRegisteredTools = await buildDynamicToolsForTest(normalParams, workspaceDir, { |
1709 | | -ignoreDisableMessageTool: true, |
1710 | | -ignoreRuntimePlan: true, |
1711 | | -}); |
| 1701 | +const normalTools = [createRuntimeDynamicTool("message")]; |
| 1702 | +const normalRegisteredTools = [createRuntimeDynamicTool("message")]; |
1712 | 1703 | const normalBridge = createCodexToolBridgeForTest( |
1713 | 1704 | normalParams, |
1714 | 1705 | normalTools, |
|