From 960b79bd528a7f00382bfc0b37ed91e3bc6e0864 Mon Sep 17 00:00:00 2001 From: Chris Villegas Date: Mon, 15 Jun 2026 17:28:10 -0700 Subject: [PATCH 1/2] fix(agentex-ui): include account_id in investigate traces link Co-authored-by: Cursor --- .../task-header/investigate-traces-button.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/agentex-ui/components/task-header/investigate-traces-button.tsx b/agentex-ui/components/task-header/investigate-traces-button.tsx index 7663ab89..5eb80f2d 100644 --- a/agentex-ui/components/task-header/investigate-traces-button.tsx +++ b/agentex-ui/components/task-header/investigate-traces-button.tsx @@ -5,6 +5,7 @@ import { forwardRef } from 'react'; import { ArrowRight } from 'lucide-react'; import { useAgentexClient } from '@/components/providers'; +import { useSafeSearchParams } from '@/hooks/use-safe-search-params'; import { cn } from '@/lib/utils'; type InvestigateTracesButtonProps = { @@ -18,7 +19,16 @@ export const InvestigateTracesButton = forwardRef< InvestigateTracesButtonProps >(({ className, disabled = false, traceId, ...props }, ref) => { const { sgpAppURL } = useAgentexClient(); - const sgpTracesURL = `${sgpAppURL}/beta/monitor?trace_id=${traceId}&tt-trace-id=${traceId}`; + const { sgpAccountID } = useSafeSearchParams(); + + const params = new URLSearchParams({ + trace_id: traceId, + 'tt-trace-id': traceId, + }); + if (sgpAccountID) { + params.set('account_id', sgpAccountID); + } + const sgpTracesURL = `${sgpAppURL}/beta/monitor?${params.toString()}`; if (!sgpAppURL) { return null; From a2dbb4a33a3396ae47aca1504d9e7d194616b5fa Mon Sep 17 00:00:00 2001 From: Chris Villegas Date: Mon, 15 Jun 2026 17:33:34 -0700 Subject: [PATCH 2/2] fix(agentex-ui): use /monitor instead of /beta/monitor Co-authored-by: Cursor --- agentex-ui/components/task-header/investigate-traces-button.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agentex-ui/components/task-header/investigate-traces-button.tsx b/agentex-ui/components/task-header/investigate-traces-button.tsx index 5eb80f2d..aabc26e6 100644 --- a/agentex-ui/components/task-header/investigate-traces-button.tsx +++ b/agentex-ui/components/task-header/investigate-traces-button.tsx @@ -28,7 +28,7 @@ export const InvestigateTracesButton = forwardRef< if (sgpAccountID) { params.set('account_id', sgpAccountID); } - const sgpTracesURL = `${sgpAppURL}/beta/monitor?${params.toString()}`; + const sgpTracesURL = `${sgpAppURL}/monitor?${params.toString()}`; if (!sgpAppURL) { return null;