INNER CODE UNIT · Python
_title_text
ApodexAI/FrontierAgent · apodex/tui/app.py:515
def _title_text(self) -> str:
name = str(getattr(self.session, "session_name", "") or "").strip()
label = f" · {name}" if name else ""
return f"FrontierAgent · {self.session.mode}{label} · {self.session.cwd}"
# ── layout ────────────────────────────────────────────────────────────
def compose(self) -> ComposeResult:
with Horizontal(id="topbar"):
yield Static(
self._title_text(), id="title",
)
yield Button("☰ Menu · F2", id="menu-button", compact=True, flat=True)
with Horizontal(id="main"):
with Vertical(id="transcript-column"):
yield Static(_TRANSCRIPT_VIEW_IDLE, id="transcript-view")
yield TranscriptView()
with Vertical(id="sidebar"):
yield Tabs(