Fix #322: propagate COLORFGBG to tmux sessions for light theme#323
Draft
asheshgoplani wants to merge 3 commits intomainfrom
Draft
Fix #322: propagate COLORFGBG to tmux sessions for light theme#323asheshgoplani wants to merge 3 commits intomainfrom
asheshgoplani wants to merge 3 commits intomainfrom
Conversation
…nup) Archive milestone v1.2 shipped 2026-03-07 with v0.24.0: - 4 phases (7-10), 8 plans, 12 requirements complete - Phase dirs archived to milestones/v1.2-phases/ - ROADMAP.md collapsed, REQUIREMENTS.md archived - PROJECT.md evolved, RETROSPECTIVE.md created Committed by Ashesh Goplani
Tools like Codex detect terminal light/dark theme via the COLORFGBG environment variable. When running inside agent-deck's tmux sessions, this variable was not propagated, causing tools to default to dark theme rendering even when agent-deck was configured for light theme. Changes: - Add COLORFGBG export to buildEnvSourceCommand() so the initial process in every tmux session inherits the correct theme hint - Set COLORFGBG via tmux set-environment on session Start() so subsequent shells/windows in the session also inherit it - Propagate COLORFGBG to all running sessions on live theme change (settings panel and system theme auto-detection) - Prefer parent terminal's COLORFGBG when it matches the resolved theme direction, to preserve terminal-specific nuance Fixes #322 Committed by Ashesh Goplani
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
COLORFGBGenvironment variable to tmux sessions so terminal-aware tools (Codex, vim, etc.) correctly detect light/dark themeCOLORFGBGboth as a command-line export (for the initial process) and viatmux set-environment(for subsequent shells/windows)COLORFGBGin all running sessions on live theme change (settings panel + system theme auto-detection)COLORFGBGvalue when it matches the resolved theme directionTest plan
Fixes #322