intro msg
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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, "
|
||||
|
||||
Reference in New Issue
Block a user