intro msg
This commit is contained in:
@@ -154,6 +154,9 @@ class AgentRuntime:
|
|||||||
self._running = False
|
self._running = False
|
||||||
self._lock = asyncio.Lock()
|
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:
|
def register_entry_point(self, spec: EntryPointSpec) -> None:
|
||||||
"""
|
"""
|
||||||
Register a named entry point for the agent.
|
Register a named entry point for the agent.
|
||||||
|
|||||||
@@ -639,9 +639,8 @@ class ChatRepl(Vertical):
|
|||||||
self._check_and_show_resumable_sessions()
|
self._check_and_show_resumable_sessions()
|
||||||
|
|
||||||
# Show agent intro message if available
|
# Show agent intro message if available
|
||||||
intro = getattr(self.runtime, "intro_message", "")
|
if self.runtime.intro_message:
|
||||||
if intro:
|
history.write(f"[bold blue]Agent:[/bold blue] {self.runtime.intro_message}\n")
|
||||||
history.write(f"[bold blue]Agent:[/bold blue] {intro}\n")
|
|
||||||
else:
|
else:
|
||||||
history.write(
|
history.write(
|
||||||
"[dim]Quick start: /sessions to see previous sessions, "
|
"[dim]Quick start: /sessions to see previous sessions, "
|
||||||
|
|||||||
Reference in New Issue
Block a user