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
2 changes: 1 addition & 1 deletion apps/mobile/src/components/ComposerContextSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ export function ComposerContextSheet(props: {
) : null}
{record.kind === "subagent" ? (
<View className="gap-3">
<ContextField label="Agent" value={`@${record.handle}`} />
<ContextField label="Agent" value={`@${record.handle}`} code />
<ContextField label="Title" value={record.title} />
<ContextField label="Status when referenced" value={record.status} />
{/* Exactly what the agent receives about the referenced agent. */}
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/features/threads/ComposerCommandPopover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const AgentCommandRow = memo(function AgentCommandRow(props: {
</View>
<View className="min-w-0 flex-1 gap-0.5">
<View className="min-w-0 flex-row items-baseline gap-1.5">
<Text className="shrink-0 text-base font-t3-medium text-foreground" numberOfLines={1}>
<Text className="shrink-0 font-mono text-sm text-foreground" numberOfLines={1}>
@{entry.handle}
</Text>
<Text className={cn("shrink-0 text-xs font-t3-medium", SUBAGENT_TONE_TEXT_CLASS[tone])}>
Expand Down Expand Up @@ -282,7 +282,7 @@ const CommandRow = memo(function CommandRow(props: {
type="monochrome"
/>
) : null}
<Text className="shrink-0 text-base font-t3-medium text-foreground" numberOfLines={1}>
<Text className="shrink-0 font-mono text-sm text-foreground" numberOfLines={1}>
{props.isSlashSkill && props.item.type === "skill" ? (
<>
<Text className="text-foreground-muted">skill:</Text>
Expand Down
7 changes: 6 additions & 1 deletion apps/mobile/src/features/threads/ProviderSubagentBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ export function ProviderSubagentBar(props: {
className="font-sans text-xs text-foreground-secondary"
style={{ fontVariant: ["tabular-nums"] }}
>
{handle ? `@${handle} · ` : ""}
{handle ? (
<>
<Text className="font-mono text-xs text-foreground-secondary">@{handle}</Text>
{" · "}
</>
) : null}
{statusLabel} · Runs on its own
</Text>
</View>
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/features/threads/SubagentRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function SubagentMetadata(props: {
<>
<Text
numberOfLines={1}
className="min-w-0 shrink font-t3-medium text-xs text-foreground-secondary"
className="min-w-0 shrink font-mono text-xs text-foreground-secondary"
>
@{props.handle}
</Text>
Expand Down
7 changes: 3 additions & 4 deletions apps/web/src/components/chat/SubagentTooltipContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import {
} from "@t3tools/client-runtime/state/subagent-display";
import { formatSubagentTokenCount } from "@t3tools/client-runtime/state/subagentRuntime";
import { getModelSelectionStringOptionValue, resolveSelectableModel } from "@t3tools/shared/model";
import { AgentHandle } from "./AgentHandle";
import { getTraitsSpeedDisplay, TraitsSpeedIcon } from "./TraitsSpeed";
import type { ReactNode } from "react";
import {
AtSignIcon,
BotIcon,
CheckIcon,
CircleDashedIcon,
Expand Down Expand Up @@ -130,9 +130,8 @@ export function SubagentTooltipContent(props: {
return (
<ThreadHoverCard title={props.title}>
{props.handle ? (
<div className="flex min-w-0 items-center gap-2">
<AtSignIcon className="size-3 shrink-0" />
<span className="min-w-0 truncate font-mono text-foreground/75">{props.handle}</span>
<div className="-ms-1 flex min-w-0">
<AgentHandle handle={props.handle} copyable className="max-w-full" />
</div>
) : null}
<div className="flex min-w-0 items-center gap-2">
Expand Down