Add reasoning effort for spawned agents

This commit is contained in:
Ramnique Singh 2026-07-10 11:59:11 +05:30
parent 7765bec96e
commit 36ce35a058
4 changed files with 36 additions and 4 deletions

View file

@ -9,6 +9,7 @@ import {
isTurnUsageMessage,
getToolDisplayName,
getToolErrorText,
REASONING_EFFORT_LABELS,
toToolState,
normalizeToolOutput,
} from '@/lib/chat-conversation'
@ -38,7 +39,7 @@ export function CompactConversation({ items }: { items: ConversationItem[] }) {
}
if (isTurnUsageMessage(item)) {
return (
<div key={item.id} className="flex justify-start px-1">
<div key={item.id} className="flex items-center justify-start gap-1 px-1">
<TokenUsageMenu
usage={item.usage}
scope="turn"
@ -46,6 +47,11 @@ export function CompactConversation({ items }: { items: ConversationItem[] }) {
className="size-5 border-transparent bg-transparent hover:bg-transparent"
align="start"
/>
{item.reasoningEffort && (
<span className="text-xs text-muted-foreground/70">
{REASONING_EFFORT_LABELS[item.reasoningEffort]}
</span>
)}
</div>
)
}