From 32cae75ef54c2096e56205f6ffd6af76866aa0ab Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 10 Feb 2026 11:28:34 -0800 Subject: [PATCH] intro msg --- core/framework/runtime/agent_runtime.py | 3 +++ core/framework/tui/widgets/chat_repl.py | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/framework/runtime/agent_runtime.py b/core/framework/runtime/agent_runtime.py index fab179cc..643a9b1b 100644 --- a/core/framework/runtime/agent_runtime.py +++ b/core/framework/runtime/agent_runtime.py @@ -154,6 +154,9 @@ class AgentRuntime: self._running = False self._lock = asyncio.Lock() + # Optional greeting shown to user on TUI load (set by AgentRunner) + self.intro_message: str = "" + def register_entry_point(self, spec: EntryPointSpec) -> None: """ Register a named entry point for the agent. diff --git a/core/framework/tui/widgets/chat_repl.py b/core/framework/tui/widgets/chat_repl.py index 9c87729d..dd24fadb 100644 --- a/core/framework/tui/widgets/chat_repl.py +++ b/core/framework/tui/widgets/chat_repl.py @@ -639,9 +639,8 @@ class ChatRepl(Vertical): self._check_and_show_resumable_sessions() # Show agent intro message if available - intro = getattr(self.runtime, "intro_message", "") - if intro: - history.write(f"[bold blue]Agent:[/bold blue] {intro}\n") + if self.runtime.intro_message: + history.write(f"[bold blue]Agent:[/bold blue] {self.runtime.intro_message}\n") else: history.write( "[dim]Quick start: /sessions to see previous sessions, "