fix(tui): apply terminal backend config before launch

This commit is contained in:
helix4u
2026-06-09 00:31:27 -07:00
committed by Teknium
parent dbbd1d4d05
commit f8adefdebf
5 changed files with 175 additions and 30 deletions
+5
View File
@@ -1825,6 +1825,11 @@ def _launch_tui(
import tempfile
env = os.environ.copy()
try:
from hermes_cli.config import apply_terminal_config_to_env
apply_terminal_config_to_env(env=env)
except Exception:
logger.debug("Failed to apply terminal config bridge for TUI launch", exc_info=True)
active_session_fd, active_session_file = tempfile.mkstemp(
prefix="hermes-tui-active-session-", suffix=".json"
)