Skip to content

Fixes #34520 [Bug] License expiring banner not shown after login until manual page refresh#34524

Open
Kilros0817 wants to merge 1 commit into
langgenius:mainfrom
Kilros0817:my-fix-branch-1
Open

Fixes #34520 [Bug] License expiring banner not shown after login until manual page refresh#34524
Kilros0817 wants to merge 1 commit into
langgenius:mainfrom
Kilros0817:my-fix-branch-1

Conversation

@Kilros0817
Copy link
Copy Markdown

@Kilros0817 Kilros0817 commented Apr 3, 2026

Summary

This PR fixes an issue where the license expiring banner did not appear immediately after login until the user manually refreshed the page.

The root cause was that the expired_at field in system features was only available for authenticated requests, while the frontend cached system features before login. This caused the dashboard to use stale data without expired_at, preventing the banner from showing.

The fix (Option A): Move expired_at outside the is_authenticated guard so it is available even for unauthenticated calls. The status field remains gated because it contains sensitive information, but expired_at is safe to expose.

This ensures that the banner is displayed immediately after login without requiring a manual page refresh.

Fixes #34520

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Apr 3, 2026
@Kilros0817
Copy link
Copy Markdown
Author

Kilros0817 commented Apr 3, 2026

@GarfieldDai
Could you please review this PR?
PR about issue #34520
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] License expiring banner not shown after login until manual page refresh

1 participant