v5 was created by restoring v3
I added in original_prompt in the data can you display the original in like the session timelines and the high latency queries sections and where you see fit
Added the original_prompt parameter to all four tools. Here's what changed:
Changes Made:
Added original_prompt parameter to all four tools:
get_benchmark_results_by_filters
get_available_benchmark_options
web_search
web_search_benchmark_results
Included in analytics tracking: The original_prompt is added to tool_params (when provided), so it will be stored in the analytics metadata.
Excluded from retry detection: The original_prompt is excluded from the retry detection hash since it's metadata, not a functional parameter. This ensures retry detection works correctly.
Updated test script: The test script now passes the scenario query as original_prompt.
How it works:
When a tool is called with original_prompt, it's included in the tool_params that get tracked to Supabase
The original user query/prompt will be visible in the analytics events
Retry detection only hashes functional parameters (not metadata like original_prompt)
The parameter is optional, so it won't break existing integrations
Now when you run the test script or use the MCP server, the original user prompt will be tracked in your analytics data, making it easier to understand what users are asking for when they use each tool.
I can see that original_prompt is already being accessed in the code via tool_params.original_prompt. Now let me check if there are other components that should display this field, and I'll also look at the high-latency-queries component.
I can see that the code is already accessing original_prompt from tool_params.original_prompt. The session timeline and high latency queries components are already displaying this field. Let me verify the data is being properly extracted in the main page and ensure the display is prominent. I'll also check if there are any other places where we should show the original prompt more clearly.
I've enhanced the display of original_prompt across all three key components. The session timeline now shows prompts in highlighted boxes with an icon for easy identification, high latency queries display prompts in orange-tinted boxes to emphasize slow queries, and no-results queries show prompts in red-tinted boxes to highlight failed queries. Each prompt is displayed with a MessageSquare icon and proper spacing for better readability.
sometimes there is reponse in the data and we should display that especially in sessions timeline and can you display the original prompt
[{"idx":17,"id":1846,"user_id":"test-user-alice","event_name":"calculator","metadata":"{"success": true, "response": "15 + 25\n\n(Explanation unavailable)", "tool_name": "calculator", "tool_params": {"explain": true, "expression": "15 + 25", "original_prompt": "Calculate 15 plus 25 and explain the result"}, "execution_time_ms": 2.5136470794677734}","created_at":"2026-01-15 20:41:44.594902+00","session_id":"d911d832-e046-4bd4-a06e-17b3b1465191","mcp_name":"golf"},{"idx":18,"id":1847,"user_id":"test-user-alice","event_name":"answer_incomplete","metadata":"{"response": "15 + 25\n\n(Explanation unavailable)", "tool_name": "calculator", "result_count": 1, "original_prompt": "Calculate 15 plus 25 and explain the result", "completeness_score": 0.5}","created_at":"2026-01-15 20:41:52.174219+00","session_id":"d911d832-e046-4bd4-a06e-17b3b1465191","mcp_name":"golf"}]