microsoft / microsoft/agent-framework

DevUI theme keeps defaulting to Dark instead of respecting System mode

Open
#4,112 0 comments 0 reactions 1 assignee View on GitHub

@victordibia is already working on this.

Since Feb 20, 2026.

devui
Dominant language
Python
Stars
13.6k
Forks
2.3k
Avg merge
2d 45m
Merged PRs (30d)
358

Description

## Bug report

DevUI keeps defaulting to Dark mode after restarting, even when I previously selected **System** mode.

## Repro steps
1. Open DevUI.
2. Change theme to **System** mode.
3. Use DevUI normally (theme selection is respected in this session).
4. Restart/reopen DevUI.
5. Observe theme selection on load.

## Actual behavior
- ✅ DevUI respects the selected theme mode within the current session.
- ❌ After restart, DevUI defaults back to **Dark** mode.

## Expected behavior
DevUI should persist and restore the previously selected theme mode (including **System**) across restarts.

## Suggestion
Persist the user theme preference in localStorage (or a cookie) and restore it on startup.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.