feat(subagents): disclose projected results consistently #3866
MergedPixPMusic(GitHub profile, opens in a new tab)merged 4 commits into
t3code/codex-turn-mapping fromrefs/pull/3866/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/web/src/components/chat/V2LifecycleRow.tsx line 180OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -149,9 +153,7 @@149153 <span className="rounded-full border border-border/70 px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground">150154 {props.badge}151155 </span>152- {threadId === null ? null : (153- <ExternalLinkIcon className="size-3 shrink-0 text-muted-foreground" aria-hidden="true" />154- )}155156 </>156157 );157158159+ if (expandedDetail !== null) {apps/web/src/components/chat/V2LifecycleRow.tsx line 147OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -135,9 +137,11 @@135137 readonly icon: LucideIcon;136138 readonly title: string;137139 readonly detail: string;140+ readonly expandedDetail?: string | null;138141 readonly badge: string;139142 readonly threadId: ThreadId | null;140143 readonly onOpenThread: (threadId: ThreadId) => void;141144 }) {142145 const Icon = props.icon;143146 const threadId = props.threadId;147+ const expandedDetail = props.expandedDetail?.trim() ? props.expandedDetail : null;
- apps/web/src/components/chat/V2LifecycleRow.tsx line 133OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -115,9 +123,11 @@115123 );116124 }117125 if (item.type === "subagent") {126+ const finalResult =127+ TERMINAL_SUBAGENT_STATUSES.has(item.status) && item.result?.trim() ? item.result : null;118128 return (119129 <RelatedThreadCard120130 itemType={item.type}121131 icon={BotIcon}122132 title={subagentDisplayTitle(item.title ?? "Subagent")}123- detail={item.result ?? item.progress ?? item.prompt}133+ detail={finalResult ?? item.progress ?? item.prompt}
- apps/web/src/components/chat/V2LifecycleRow.tsx line 133OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -115,9 +123,11 @@115123 );116124 }117125 if (item.type === "subagent") {126+ const streamedResult = item.result?.trim() ? item.result : null;127+ const finalResult = FINAL_RESULT_SUBAGENT_STATUSES.has(item.status) ? streamedResult : null;118128 return (119129 <RelatedThreadCard120130 itemType={item.type}121131 icon={BotIcon}122132 title={subagentDisplayTitle(item.title ?? "Subagent")}123- detail={item.result ?? item.progress ?? item.prompt}133+ detail={finalResult ?? item.progress ?? streamedResult ?? item.prompt}
juliusmarminge merged this8c3675c
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
ba8fa451-985d-42f5-8d42-59da880ecf5bYou can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share