+ Not found
+
+ This item does not exist, or you do not have access to it.
+
+
+
+);
+
+export default NotFound;
diff --git a/apps/next/src/app/(app)/spoons/[spoonId]/agent/[jobId]/page.tsx b/apps/next/src/app/(app)/spoons/[spoonId]/agent/[jobId]/page.tsx
index 93fdbfe..29aaef5 100644
--- a/apps/next/src/app/(app)/spoons/[spoonId]/agent/[jobId]/page.tsx
+++ b/apps/next/src/app/(app)/spoons/[spoonId]/agent/[jobId]/page.tsx
@@ -1,5 +1,6 @@
'use client';
+import type { FunctionReturnType } from 'convex/server';
import { useEffect } from 'react';
import Link from 'next/link';
import { useParams, useRouter } from 'next/navigation';
@@ -15,13 +16,33 @@ const AgentWorkspacePage = () => {
const router = useRouter();
const params = useParams<{ spoonId: string; jobId: string }>();
const jobId = params.jobId as Id<'agentJobs'>;
- const job = useQuery(api.agentJobs.get, { jobId });
+ const job = useQuery(api.agentJobs.get, { jobId }) as
+ | FunctionReturnType