Skip to content

Commit d7063e7

Browse files
committed
fix(doctor): quiet active schema policy audits
1 parent 276b158 commit d7063e7

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/commands/doctor/shared/active-tool-schema-warnings.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ describe("active tool schema doctor warnings", () => {
103103
).toEqual([
104104
'- agents.main: active tool "dofbot_move_angles" from plugin "dofbot" has unsupported runtime input schema (dofbot_move_angles.parameters.type must be "object"). OpenClaw will quarantine this tool at runtime; fix or disable the plugin, or remove the tool from active allowlists.',
105105
]);
106+
expect(toolState.createTools).toHaveBeenCalledWith(
107+
expect.objectContaining({ toolPolicyAuditLogLevel: "debug" }),
108+
);
106109
});
107110

108111
it("warns about unreadable active tool entries without crashing", () => {

src/commands/doctor/shared/active-tool-schema-warnings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export function collectActiveToolSchemaProjectionWarnings(params: {
158158
modelCompat: runtimeModelContext.modelCompat,
159159
modelContextWindowTokens: runtimeModelContext.modelContextWindowTokens,
160160
allowGatewaySubagentBinding: true,
161+
toolPolicyAuditLogLevel: "debug",
161162
});
162163
} catch (error) {
163164
warnings.push(

0 commit comments

Comments
 (0)