launch tui later to allow setup et al

This commit is contained in:
Ari Lotter 2026-04-11 20:23:15 -04:00
parent 29721fcc58
commit 8e0df1d532

View file

@ -793,12 +793,6 @@ def cmd_chat(args):
# If resolution fails, keep the original value — _init_agent will
# report "Session not found" with the original input
if use_tui:
_launch_tui(
getattr(args, "resume", None),
tui_dev=getattr(args, "tui_dev", False),
)
# First-run guard: check if any provider is configured before launching
if not _has_any_provider_configured():
print()
@ -848,6 +842,13 @@ def cmd_chat(args):
if getattr(args, "source", None):
os.environ["HERMES_SESSION_SOURCE"] = args.source
if use_tui:
_launch_tui(
getattr(args, "resume", None),
tui_dev=getattr(args, "tui_dev", False),
)
# Import and run the CLI
from cli import main as cli_main