Skip to content

Log details refresh#3276

Closed
emir-karabeg wants to merge 1 commit intostagingfrom
cursor/log-details-refresh-2117
Closed

Log details refresh#3276
emir-karabeg wants to merge 1 commit intostagingfrom
cursor/log-details-refresh-2117

Conversation

@emir-karabeg
Copy link
Collaborator

Summary

Fixes an issue where log details, particularly executionData (e.g., trace spans), did not display correctly when selecting a log entry without a hard refresh. The useLogDetail hook now ensures detailed log data is always refetched upon selection, overriding stale cached data.

Fixes #

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Other: ___________

Testing

Verify that selecting any log entry on the logs page immediately displays its complete details, including executionData like trace spans, without requiring a hard refresh.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Screenshots/Videos


Slack Thread

Open in Web Open in Cursor 

- Set staleTime to 0 for useLogDetail hook to always consider cached data stale
- Add refetchOnMount: 'always' to ensure fresh data is fetched when a log is selected
- Reduce prefetch staleTime to 5 seconds for better consistency

This fixes the bug where users needed to hard refresh to see log details
of a specific log. The issue was that cached/initial data from the list
query wasn't being properly refreshed when selecting a log.

Co-authored-by: Emir Karabeg <emir-karabeg@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Feb 20, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Feb 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Feb 20, 2026 10:28pm

Request Review

@waleedlatif1 waleedlatif1 deleted the cursor/log-details-refresh-2117 branch February 21, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants