The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
"""Termux's interactive fast launch keeps main's deferred-startup hints (main's HermesCLI runs again)."""
import sys
def test_termux_fast_launch_defers_agent_startup_like_main(monkeypatch):
from hermes_cli import main
monkeypatch.setenv("TERMUX_VERSION", "fixture")
monkeypatch.delenv("HERMES_TERMUX_DISABLE_FAST_CLI", raising=False)
monkeypatch.delenv("HERMES_DEFER_AGENT_STARTUP", raising=False)
monkeypatch.delenv("HERMES_FAST_STARTUP_BANNER", raising=False)
monkeypatch.setattr(sys, "argv", ["hermes", "--cli"])
launches = []
monkeypatch.setattr(main, "cmd_chat", launches.append)
assert main._try_termux_fast_cli_launch()
assert len(launches) == 1
assert launches[0].compact is True
import os
assert os.environ["HERMES_DEFER_AGENT_STARTUP"] == "1"
assert os.environ["HERMES_FAST_STARTUP_BANNER"] == "1"