Skip to content

Conversation

@ShpetimA
Copy link
Contributor

When using theme: "system" the ui flickers during initial load #4472.

Fixed by waiting for system theme to load before allowing children of theme provider to render. (same as custom theme)

Screen.Recording.2025-12-20.at.2.52.42.PM.mov

If theme set to system and fails to load we fallback to opencode theme.

Screen.Recording.2025-12-20.at.2.57.31.PM.mov

Loading with custom theme:

Screen.Recording.2025-12-20.at.2.58.56.PM.mov

Shpetim added 2 commits December 20, 2025 14:40
When user has system theme set wait for system theme to load before loading ui.
Add error fallback to getCustomThemes.
@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

lgtm

@rekram1-node
Copy link
Collaborator

this was such an annoying little bug so thank u for fixing!

@rekram1-node rekram1-node merged commit 426791f into anomalyco:dev Dec 20, 2025
2 checks passed
@ShpetimA ShpetimA deleted the system-theme-flicker branch December 20, 2025 18:29
rekram1-node pushed a commit that referenced this pull request Dec 27, 2025
Co-authored-by: Shpetim <shpetim.alimi@ndbit.net>
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.

2 participants