fix(settings): call canonical RPC name in Tool Policy diagnostics panel (#3927)

This commit is contained in:
Hüsam
2026-06-22 10:08:53 -07:00
committed by GitHub
parent c39f18d9df
commit 43e2a01f88
2 changed files with 4 additions and 2 deletions
@@ -59,7 +59,7 @@ const ToolPolicyDiagnosticsPanel = () => {
(async () => {
try {
const diagnostics = await callCoreRpc<ToolPolicyDiagnostics>({
method: 'tool_registry.diagnostics',
method: 'openhuman.tool_registry_diagnostics',
params: {},
timeoutMs: 10_000,
});
@@ -44,7 +44,9 @@ describe('ToolPolicyDiagnosticsPanel', () => {
expect(screen.getByText(/Total tools/i)).toBeInTheDocument();
expect(screen.getAllByText('10').length).toBeGreaterThan(0);
expect(screen.getByText(/Recent \(24h\): 5/i)).toBeInTheDocument();
expect(hoisted.callCoreRpc).toHaveBeenCalled();
expect(hoisted.callCoreRpc).toHaveBeenCalledWith(
expect.objectContaining({ method: 'openhuman.tool_registry_diagnostics' })
);
});
test('renders unavailable card when the RPC throws', async () => {