Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(playground): handle missing tool server in MCP tool playground

Steven Enamakel7199580edb10
diff --git a/app/src/components/channels/mcp/McpToolPlayground.tsx b/app/src/components/channels/mcp/McpToolPlayground.tsx
index 48c1eb69b3..a3df8aebb6 100644
--- a/app/src/components/channels/mcp/McpToolPlayground.tsx
+++ b/app/src/components/channels/mcp/McpToolPlayground.tsx
@@ -127,8 +127,8 @@ const McpToolPlayground = ({ serverId, tool, onClose }: McpToolPlaygroundProps)
// `useEffect` here would be overridden immediately after. Defer to the
// next animation frame so this one wins.
useEffect(() => {
- const raf = requestAnimationFrame(() => argsTextareaRef.current?.focus());
- return () => cancelAnimationFrame(raf);
+ const raf = window.requestAnimationFrame(() => argsTextareaRef.current?.focus());
+ return () => window.cancelAnimationFrame(raf);
}, []);
const schemaJson = useMemo(() => stringifyResult(tool.input_schema), [tool.input_schema]);
diff --git a/app/src/components/composio/useComposioConnectFlow.ts b/app/src/components/composio/useComposioConnectFlow.ts
index 8c6ac4288f..7dc0f02b48 100644
--- a/app/src/components/composio/useComposioConnectFlow.ts
+++ b/app/src/components/composio/useComposioConnectFlow.ts
@@ -248,7 +248,11 @@ export function useComposioConnectFlow({
}
// intentionally run once on mount — startPolling has stable deps and
// re-running this on every identity change would restart the poller.
- // eslint-disable-next-line react-hooks/exhaustive-deps
+ //
+ // No `eslint-disable` for `react-hooks/exhaustive-deps` here: the plugin is
+ // registered only for `**/*.jsx` / `**/*.tsx` (eslint.config.js), so in this
+ // `.ts` file the directive named an undefined rule, which is an error in its
+ // own right. Hook rules simply do not run on this file today.
}, []);
/**
diff --git a/app/src/components/intelligence/SourceSettingsPanel.test.tsx b/app/src/components/intelligence/SourceSettingsPanel.test.tsx
index 31c3df1e4e..8d9baaf6f6 100644
--- a/app/src/components/intelligence/SourceSettingsPanel.test.tsx
+++ b/app/src/components/intelligence/SourceSettingsPanel.test.tsx
@@ -2,8 +2,7 @@ import { render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import { afterEach, describe, expect, it, vi } from 'vitest';
-import type { MemorySourceEntry } from '../../services/memorySourcesService';
-import { updateMemorySource } from '../../services/memorySourcesService';
+import { type MemorySourceEntry, updateMemorySource } from '../../services/memorySourcesService';
import { SourceSettingsPanel } from './SourceSettingsPanel';
vi.mock('../../services/memorySourcesService', async () => {