@@ -17,6 +17,8 @@ interface ToolMessageProps {
1717 onReviewNote ?: ( data : ReviewNoteData ) => void ;
1818 /** Whether this is the latest propose_plan in the conversation */
1919 isLatestProposePlan ?: boolean ;
20+ /** Whether this is the latest propose_harness in the conversation */
21+ isLatestProposeHarness ?: boolean ;
2022 /** Optional bash_output grouping info */
2123 bashOutputGroup ?: BashOutputGroupInfo ;
2224}
@@ -27,6 +29,7 @@ export const ToolMessage: React.FC<ToolMessageProps> = ({
2729 workspaceId,
2830 onReviewNote,
2931 isLatestProposePlan,
32+ isLatestProposeHarness,
3033 bashOutputGroup,
3134} ) => {
3235 const { toolName, args, result, status, toolCallId } = message ;
@@ -40,6 +43,12 @@ export const ToolMessage: React.FC<ToolMessageProps> = ({
4043 ? bashOutputGroup . position
4144 : undefined ;
4245
46+ const isLatest =
47+ toolName === "propose_plan"
48+ ? isLatestProposePlan
49+ : toolName === "propose_harness"
50+ ? isLatestProposeHarness
51+ : undefined ;
4352 // Extract hook output if present (only shown when hook produced output)
4453 const hookOutput = extractHookOutput ( result ) ;
4554 const hookDuration = extractHookDuration ( result ) ;
@@ -59,8 +68,8 @@ export const ToolMessage: React.FC<ToolMessageProps> = ({
5968 startedAt = { message . timestamp }
6069 // FileEdit-specific
6170 onReviewNote = { onReviewNote }
62- // ProposePlan-specific
63- isLatest = { isLatestProposePlan }
71+ // ProposePlan/ProposeHarness -specific
72+ isLatest = { isLatest }
6473 // BashOutput-specific
6574 groupPosition = { groupPosition }
6675 // CodeExecution-specific
0 commit comments