Skip to content

fix(ai-conversations): Fix page filter race condition on conversation detail page#115366

Merged
obostjancic merged 3 commits into
masterfrom
ognjenbostjancic/tet-2314-conversation-id-url-without-any-get-params-forces-the-last
May 12, 2026
Merged

fix(ai-conversations): Fix page filter race condition on conversation detail page#115366
obostjancic merged 3 commits into
masterfrom
ognjenbostjancic/tet-2314-conversation-id-url-without-any-get-params-forces-the-last

Conversation

@obostjancic
Copy link
Copy Markdown
Member

Fixes page filter initialization race on the conversation detail page that caused empty results when opening via direct link or navigating from the table.

  • skipLoadLastUsed on detail page prevents localStorage restoration
  • Table URLs now include pre-padded start/end and project params
  • Bare links fall back to ALL_ACCESS_PROJECTS + 30d

Refs TET-2314

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 12, 2026

TET-2314

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.49%

obostjancic and others added 2 commits May 12, 2026 12:05
… detail page

Opening a conversation detail URL without query params caused
PageFiltersContainer to restore stale project/datetime from
localStorage, resulting in empty results when the stored project
didn't match the conversation's actual project.

- Add skipLoadLastUsed on detail page to prevent localStorage
  restoration
- Include pre-padded start/end and project in table detail URLs
  so PageFiltersContainer picks them up directly
- Fall back to ALL_ACCESS_PROJECTS and statsPeriod=30d when no
  filters are present (bare link / Slack link scenario)

Refs TET-2314
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Pass projects to the new ConversationIdLink call site added in
50408b5.
@obostjancic obostjancic force-pushed the ognjenbostjancic/tet-2314-conversation-id-url-without-any-get-params-forces-the-last branch from 0c0bf65 to b09f0f7 Compare May 12, 2026 10:06
@obostjancic obostjancic marked this pull request as ready for review May 12, 2026 10:48
@obostjancic obostjancic requested a review from a team as a code owner May 12, 2026 10:48
Comment thread static/app/views/explore/conversations/hooks/useConversation.tsx Outdated
Comment thread static/app/views/explore/conversations/hooks/useConversation.tsx
Also check selection.datetime.period (not just start) to detect
explicitly set datetime filters. Avoids silently overriding relative
periods like "7d" with the 30d fallback.
Comment thread static/app/views/explore/conversations/hooks/useConversation.tsx
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ad02d1f. Configure here.

Comment thread static/app/views/explore/conversations/hooks/useConversation.tsx
@obostjancic obostjancic enabled auto-merge (squash) May 12, 2026 11:18
@obostjancic obostjancic merged commit a77f82f into master May 12, 2026
75 checks passed
@obostjancic obostjancic deleted the ognjenbostjancic/tet-2314-conversation-id-url-without-any-get-params-forces-the-last branch May 12, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants