We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1717a1 + 0b0a1d9 commit 4d8a6f3Copy full SHA for 4d8a6f3
1 file changed
components/frontend/src/services/queries/use-sessions.ts
@@ -80,6 +80,8 @@ export function useSession(projectName: string, sessionName: string, port: Sessi
80
retryDelay: (attemptIndex) => Math.min(1000 * 2 ** attemptIndex, 10000),
81
refetchInterval: (query) => {
82
const session = query.state.data as AgenticSession | undefined;
83
+ if (!session) return 2000;
84
+
85
const phase = session?.status?.phase;
86
const annotations = session?.metadata?.annotations || {};
87
0 commit comments