Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/toad/conversation_kind.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def prompt(cls, target):

@classmethod
async def agent_info(cls, comms, target):
return await asyncio.to_thread(comms.agents.agent_info_of, target)
return await asyncio.to_thread(comms.configuration.answer, target)

@classmethod
def seen_page(cls, history, seen):
Expand Down
6 changes: 6 additions & 0 deletions src/toad/screens/main.tcss
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

WorkspaceScreen {
/* Float sidebars above session content while keeping Screen's tooltip
layer front-most. */
layers: default comms-sidebar;
}

Note,MarkdownNote {
padding: 0 1 0 0;
&.-error {
Expand Down
5 changes: 4 additions & 1 deletion src/toad/widgets/comms_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,10 @@ async def _refresh_labels(self, comms, changed: bool, newly_announced: bool, rea
elif info is not None:
self.status = " · ".join(
value
for value in (info.model or "", info.context_label)
for value in (
info.model or "",
info.context_usage.label if info.context_usage is not None else "",
)
if value
)
else:
Expand Down
6 changes: 4 additions & 2 deletions src/toad/widgets/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,10 +806,12 @@ def compose(self) -> ComposeResult:
for kind in InfoPopup.members_with(InfoPopup):
if (popup := kind.for_prompt(self)) is not None:
yield popup
with containers.HorizontalGroup(id="info-container"):
with containers.HorizontalGroup(id="info-container"):
if not self.simple_input:
yield AgentInfo()
yield CondensedPath().data_bind(path=Prompt.display_directory)
yield StatusLine(markup=False).data_bind(status=Prompt.status)
yield StatusLine(markup=False).data_bind(status=Prompt.status)
if not self.simple_input:
yield ModeSwitcher()
yield ModeInfo("mode")

Expand Down
3 changes: 2 additions & 1 deletion src/toad/widgets/side_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,8 @@ def _apply_layout(self, resolved) -> bool:
geometry.x + width - self.screen.size.width)
self.set_styles(width=width, min_width=width, max_width=width,
dock=placement.side if not shared else "none",
position="absolute", overlay="screen", offset=(offset_x, 0))
position="absolute", overlay="none", layer="comms-sidebar",
offset=(offset_x, 0))
if handle := self.query_one_optional(SidebarResizeHandle):
handle.display = not self.collapsed
if self._panels_loaded and (controls := self.query_one_optional("#sidebar-controls")):
Expand Down
Loading