mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix(dashboard): route browser wheel into inner TUI scrolling
This commit is contained in:
parent
8aceef539f
commit
7cbef2bd42
2 changed files with 34 additions and 7 deletions
|
|
@ -2949,13 +2949,6 @@ def _resolve_chat_argv(
|
|||
argv, cwd = _make_tui_argv(PROJECT_ROOT / "ui-tui", tui_dev=False)
|
||||
env = os.environ.copy()
|
||||
env.setdefault("NODE_ENV", "production")
|
||||
# Embedded browser chat should render into the primary screen buffer, not
|
||||
# the terminal alternate screen. Alt-screen is ideal for the native CLI,
|
||||
# but it intentionally has no host scrollback; in the web dashboard that
|
||||
# makes mouse-wheel history feel broken even when xterm itself is healthy.
|
||||
# INLINE mode keeps transcript rows in the normal buffer so browser-side
|
||||
# scrollback works predictably.
|
||||
env.setdefault("HERMES_TUI_INLINE", "1")
|
||||
# Browser-embedded chat should prefer stable wheel-based scrollback over
|
||||
# native terminal mouse tracking. When mouse tracking is enabled, wheel
|
||||
# events are consumed by the TUI and forwarded as terminal input, which
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue