[PR #5842] fix: system theme flicker #11613

Closed
opened 2026-02-16 18:16:29 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5842

State: closed
Merged: Yes


When using theme: "system" the ui flickers during initial load https://github.com/sst/opencode/issues/4472.

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

https://github.com/user-attachments/assets/fbd479a7-89f7-415a-be2d-3c399cb3fdb7

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

https://github.com/user-attachments/assets/5b7a3e23-894a-4f0b-aacd-e7b5f6aee78e

Loading with custom theme:

https://github.com/user-attachments/assets/fd04618c-5130-4b92-90d4-901438be758a

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5842 **State:** closed **Merged:** Yes --- When using theme: **"system"** the ui flickers during initial load https://github.com/sst/opencode/issues/4472. Fixed by waiting for system theme to load before allowing children of theme provider to render. (_same as custom theme_) https://github.com/user-attachments/assets/fbd479a7-89f7-415a-be2d-3c399cb3fdb7 If theme set to system and fails to load we fallback to opencode theme. https://github.com/user-attachments/assets/5b7a3e23-894a-4f0b-aacd-e7b5f6aee78e Loading with custom theme: https://github.com/user-attachments/assets/fd04618c-5130-4b92-90d4-901438be758a
yindo added the pull-request label 2026-02-16 18:16:29 -05:00
yindo closed this issue 2026-02-16 18:16:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11613