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
1 change: 1 addition & 0 deletions apps/web/src/components/chat/ThreadDetailsControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { ChevronDownIcon } from "lucide-react";

const parts = {
row: THREAD_DETAILS_PANEL_ROW_CLASS,
"group-row": `${THREAD_DETAILS_PANEL_ROW_CLASS} hover:!bg-transparent dark:hover:!bg-transparent`,
select: THREAD_DETAILS_PANEL_SELECT_ROW_CLASS,
primary: THREAD_DETAILS_PANEL_SPLIT_PRIMARY_CLASS,
secondary: THREAD_DETAILS_PANEL_SPLIT_SECONDARY_CLASS,
Expand Down
14 changes: 10 additions & 4 deletions apps/web/src/components/chat/ThreadRelationshipsControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ export function ThreadRelationshipsPanel(props: {
agent?.origin === "app_owned" &&
agent.startedAt &&
["pending", "running", "waiting"].includes(agent.status);
const trailingVisibilityClass = canStop
? "group-hover:opacity-0 group-focus-within:opacity-0 pointer-coarse:opacity-0 [@media(hover:none)]:opacity-0"
: "";
const threadTitle = relationshipThreadTitle({
title: node?.thread?.title ?? agent?.title ?? threadId,
isSubagent,
Expand Down Expand Up @@ -444,21 +447,24 @@ export function ThreadRelationshipsPanel(props: {
carries status, so an agent with a known time shows only that. */}
{agent && !failed && deriveSubagentElapsedMs(agent, 0) !== null ? (
<span
className={`shrink-0 text-2xs font-normal tabular-nums text-muted-foreground ${canStop ? "group-hover:opacity-0 group-focus-within:opacity-0 pointer-coarse:opacity-0 [@media(hover:none)]:opacity-0" : ""}`}
className={`shrink-0 text-2xs font-normal tabular-nums text-muted-foreground ${trailingVisibilityClass}`}
>
<AgentElapsed agent={agent} compact />
</span>
) : !isMergeTarget ? (
<span
className={`shrink-0 text-2xs ${failed ? "text-destructive" : "text-muted-foreground"}`}
className={`shrink-0 text-2xs ${failed ? "text-destructive" : "text-muted-foreground"} ${trailingVisibilityClass}`}
>
{threadRelationshipStatusLabel(status)}
</span>
) : null}
</>
);
return (
<li key={threadId} className="group relative flex h-8 items-center rounded-lg">
<li
key={threadId}
className={`group relative flex h-8 items-center rounded-lg ${canStop ? THREAD_DETAILS_PANEL_LINK_SPLIT_GROUP_CLASS : ""}`}
>
{isMergeTarget ? (
<div className={THREAD_DETAILS_PANEL_LINK_SPLIT_GROUP_CLASS}>
<Tooltip>
Expand Down Expand Up @@ -528,7 +534,7 @@ export function ThreadRelationshipsPanel(props: {
variant="ghost"
disabled={node?.missing === true}
onClick={() => openThread(threadId)}
part="row"
part={canStop ? "group-row" : "row"}
/>
}
>
Expand Down
Loading