+ {/* Model & Phase */}
+
+
+
+ {formatModelName(feature.model ?? DEFAULT_MODEL)}
- )}
-
-
- {/* Task List Progress */}
- {agentInfo.todos.length > 0 && (
-
-
-
-
- {agentInfo.todos.filter((t) => t.status === 'completed').length}/
- {agentInfo.todos.length} tasks
-
-
-
- {agentInfo.todos.slice(0, 3).map((todo, idx) => (
-
- {todo.status === 'completed' ? (
-
- ) : todo.status === 'in_progress' ? (
-
- ) : (
-
- )}
-
- {todo.content}
-
-
- ))}
- {agentInfo.todos.length > 3 && (
-
- +{agentInfo.todos.length - 3} more
-
- )}
-
-
- )}
-
- {/* Summary for waiting_approval and verified */}
- {(feature.status === 'waiting_approval' || feature.status === 'verified') && (
- <>
- {(feature.summary || summary || agentInfo.summary) && (
-
-
-
-
- Summary
-
-
-
-
- {feature.summary || summary || agentInfo.summary}
-
+ {agentInfo.currentPhase && (
+
+ {agentInfo.currentPhase}
)}
- {!feature.summary && !summary && !agentInfo.summary && agentInfo.toolCallCount > 0 && (
-
-
-
- {agentInfo.toolCallCount} tool calls
+
+
+ {/* Task List Progress */}
+ {agentInfo.todos.length > 0 && (
+
+
+
+
+ {agentInfo.todos.filter((t) => t.status === 'completed').length}/
+ {agentInfo.todos.length} tasks
- {agentInfo.todos.length > 0 && (
-
-
- {agentInfo.todos.filter((t) => t.status === 'completed').length} tasks done
-
+
+
+ {agentInfo.todos.slice(0, 3).map((todo, idx) => (
+
+ {todo.status === 'completed' ? (
+
+ ) : todo.status === 'in_progress' ? (
+
+ ) : (
+
+ )}
+
+ {todo.content}
+
+
+ ))}
+ {agentInfo.todos.length > 3 && (
+
+ +{agentInfo.todos.length - 3} more
+
)}
- )}
- >
- )}
-
+
+ )}
+
+ {/* Summary for waiting_approval and verified */}
+ {(feature.status === 'waiting_approval' || feature.status === 'verified') && (
+ <>
+ {(feature.summary || summary || agentInfo.summary) && (
+
+
+
+
+ Summary
+
+
+
+
+ {feature.summary || summary || agentInfo.summary}
+
+
+ )}
+ {!feature.summary &&
+ !summary &&
+ !agentInfo.summary &&
+ agentInfo.toolCallCount > 0 && (
+
+
+
+ {agentInfo.toolCallCount} tool calls
+
+ {agentInfo.todos.length > 0 && (
+
+
+ {agentInfo.todos.filter((t) => t.status === 'completed').length} tasks done
+
+ )}
+
+ )}
+ >
+ )}
+
+ {/* SummaryDialog must be rendered alongside the expand button */}
+