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
@@ -8573,6 +8573,11 @@ def _resolve_chat_argv(
argv, cwd = _make_tui_argv(PROJECT_ROOT / "ui-tui", tui_dev=False)
env = os.environ.copy()
try:
from hermes_cli.config import apply_terminal_config_to_env
apply_terminal_config_to_env(env=env)
except Exception:
_log.debug("Failed to apply terminal config bridge for dashboard chat", exc_info=True)
env.setdefault("NODE_ENV", "production")
# Browser-embedded chat should prefer stable wheel-based scrollback over
# native terminal mouse tracking. When mouse tracking is enabled, wheel