File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed
app/workspace/[workspaceId]/settings/[section] Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 11'use client'
22
3- import { useEffect , useRef } from 'react'
3+ import { useEffect } from 'react'
44import dynamic from 'next/dynamic'
55import { useSearchParams } from 'next/navigation'
66import { usePostHog } from 'posthog-js/react'
@@ -163,10 +163,6 @@ export function SettingsPage({ section }: SettingsPageProps) {
163163 const mcpServerId = searchParams . get ( 'mcpServerId' )
164164 const { data : session , isPending : sessionLoading } = useSession ( )
165165 const posthog = usePostHog ( )
166- const posthogRef = useRef ( posthog )
167- useEffect ( ( ) => {
168- posthogRef . current = posthog
169- } , [ posthog ] )
170166
171167 const isAdminRole = session ?. user ?. role === 'admin'
172168 const effectiveSection =
@@ -183,8 +179,8 @@ export function SettingsPage({ section }: SettingsPageProps) {
183179
184180 useEffect ( ( ) => {
185181 if ( sessionLoading ) return
186- posthogRef . current ?. capture ( 'settings_tab_viewed' , { section : effectiveSection } )
187- } , [ effectiveSection , sessionLoading ] )
182+ posthog ?. capture ( 'settings_tab_viewed' , { section : effectiveSection } )
183+ } , [ effectiveSection , sessionLoading , posthog ] )
188184
189185 return (
190186 < div >
Original file line number Diff line number Diff line change @@ -153,7 +153,14 @@ export async function executeWorkflow(
153153 }
154154 }
155155 } else {
156- await PauseResumeManager . processQueuedResumes ( executionId )
156+ try {
157+ await PauseResumeManager . processQueuedResumes ( executionId )
158+ } catch ( resumeError ) {
159+ logger . error ( `[${ requestId } ] Failed to process queued resumes` , {
160+ executionId,
161+ error : resumeError instanceof Error ? resumeError . message : String ( resumeError ) ,
162+ } )
163+ }
157164 }
158165
159166 if ( streamConfig ?. skipLoggingComplete ) {
You can’t perform that action at this time.
0 commit comments