Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(trace): log view tab key should be unique (#11172)

Nimar0f9c1ce69f91
diff --git a/web/src/components/trace2/contexts/SelectionContext.tsx b/web/src/components/trace2/contexts/SelectionContext.tsx
index adc62ee761..e1989f49ef 100644
--- a/web/src/components/trace2/contexts/SelectionContext.tsx
+++ b/web/src/components/trace2/contexts/SelectionContext.tsx
@@ -5,7 +5,7 @@
* - Tracks selected node ID (synced to URL query param)
* - Manages collapsed/expanded state for tree nodes
* - Handles search query with debounced input
- * - Tracks selected tab (preview/log/scores) - synced to URL query param
+ * - Tracks selected tab (preview/log/scores) - synced to URL query param `traceTab`
* - Tracks view preference (formatted/json) - synced to URL query param AND localStorage
*
* View Preference Behavior:
@@ -79,7 +79,7 @@ export function SelectionProvider({ children }: SelectionProviderProps) {
"observation",
StringParam,
);
- const [tabParam, setTabParam] = useQueryParam("tab", StringParam);
+ const [tabParam, setTabParam] = useQueryParam("traceTab", StringParam);
const [prefParam, setPrefParam] = useQueryParam("pref", StringParam);
// Get localStorage default for view preference