Commit 06fad42
fix: wire settings.theme to TUI via CODET_TUI_THEME env var
DEFAULT_THEME was determined solely by detectLightMode() which checks
terminal env vars (COLORFGBG, TERM_PROGRAM) but never reads the user's
explicit `theme` preference from settings.json. As a result, the TUI
always used auto-detection regardless of what the user configured.
Fix: set process.env.CODET_TUI_THEME from settings.theme before app.js
loads (which triggers theme.ts module init). During `coder setup`, set
it immediately after the user picks a theme so the post-setup TUI
session uses the right theme.
Co-Authored-By: DeepSeek <noreply@deepseek.com>1 parent 9a5ab38 commit 06fad42
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
| 638 | + | |
| 639 | + | |
638 | 640 | | |
639 | 641 | | |
640 | 642 | | |
| |||
766 | 768 | | |
767 | 769 | | |
768 | 770 | | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
769 | 788 | | |
770 | 789 | | |
771 | 790 | | |
| |||
0 commit comments