diff --git a/src/renderer/src/hooks/agents/useAgent.ts b/src/renderer/src/hooks/agents/useAgent.ts index 8ca0c865b5..62d2393618 100644 --- a/src/renderer/src/hooks/agents/useAgent.ts +++ b/src/renderer/src/hooks/agents/useAgent.ts @@ -7,7 +7,7 @@ export const useAgent = (id: string | null) => { const client = useAgentClient() const key = id ? client.agentPaths.withId(id) : null const fetcher = useCallback(async () => { - if (!id) { + if (!id || id === 'fake') { return null } const result = await client.getAgent(id)