intro msg

This commit is contained in:
bryan
2026-02-10 11:28:34 -08:00
parent 21e7554cdb
commit 32cae75ef5
2 changed files with 5 additions and 3 deletions
+3
View File
@@ -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.
+2 -3
View File
@@ -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, "