mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
fix(settings): call canonical RPC name in Tool Policy diagnostics panel (#3927)
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user