fix(cli): pass TUI Python env from dashboard chat (salvage #44797) (#66581)

* fix: pass TUI Python env from dashboard chat

* fix: share TUI Python env setup

* fix: preserve TUI Python path semantics

* chore: map contributor email for releases

---------

Co-authored-by: AI on behalf of Álvaro Sánchez-Mariscal <alvaro.sanchez-mariscal@oracle.com>
This commit is contained in:
Austin Pickett 2026-07-17 19:04:33 -04:00 committed by GitHub
parent 9803b2fb89
commit 5122ddd478
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 177 additions and 6 deletions

View file

@ -15346,7 +15346,7 @@ def _resolve_chat_argv(
dashboard's in-memory gateway runs under the dashboard's own profile,
so a profile-scoped chat must spawn its own gateway subprocess.
"""
from hermes_cli.main import PROJECT_ROOT, _make_tui_argv
from hermes_cli.main import PROJECT_ROOT, _apply_tui_python_env, _make_tui_argv
profile_dir: Optional[Path] = None
requested = (profile or "").strip()
@ -15360,6 +15360,7 @@ def _resolve_chat_argv(
apply_terminal_config_to_env(env=env)
except Exception:
_log.debug("Failed to apply terminal config bridge for dashboard chat", exc_info=True)
_apply_tui_python_env(env)
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