mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 09:29:39 +08:00
Three cleanups to the merged code-block-theme feature: - Restore Literal validation for theme/language on UISettingsUpdate. #648 relaxed them to str|None, letting PUT /ui persist values the app can't render; keep the None default (for exclude_unset partial merges) but validate any explicit value again. - Drop the dead code_block_* defaults from interface_settings.DEFAULT_UI_SETTINGS. That module is read only via get_ui_language() (language only); the keys were never consumed. Display defaults live in the frontend, and the router API round-trips saved values (None when unset), so there is one owner, not a split-brain across two default dicts. - Remove the redundant pytest async-compat shim from conftest.py: pytest-asyncio is a hard dependency and pyproject already declares asyncio_default_fixture_loop_scope. Deletes tests/multi_user/test_ui_code_block_settings.py, which asserted the inert get_ui_settings() path; the real contract is already covered by tests/api/test_settings_router.py. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>