feat: address pr comments

This commit is contained in:
Kacper
2025-12-29 16:03:27 +01:00
parent 63b0ccd035
commit 0317dadcaf
3 changed files with 13 additions and 14 deletions

View File

@@ -97,13 +97,8 @@ export function RunningAgentsView() {
);
const handleViewLogs = useCallback((agent: RunningAgent) => {
// Set the current project context for the modal
const project = projects.find((p) => p.path === agent.projectPath);
if (project) {
(window as any).__currentProject = project;
}
setSelectedAgent(agent);
}, [projects]);
}, []);
if (loading) {
return (
@@ -232,6 +227,7 @@ export function RunningAgentsView() {
<AgentOutputModal
open={true}
onClose={() => setSelectedAgent(null)}
projectPath={selectedAgent.projectPath}
featureDescription={selectedAgent.description || selectedAgent.title || selectedAgent.featureId}
featureId={selectedAgent.featureId}
featureStatus="running"