diff --git a/apps/frontend/src/main/project-store.ts b/apps/frontend/src/main/project-store.ts index dab55374..dedc374f 100644 --- a/apps/frontend/src/main/project-store.ts +++ b/apps/frontend/src/main/project-store.ts @@ -399,27 +399,8 @@ export class ProjectStore { const reqContent = readFileSync(requirementsPath, 'utf-8'); const requirements = JSON.parse(reqContent); if (requirements.task_description) { - // Extract a clean summary from task_description (first line or first ~200 chars) - const taskDesc = requirements.task_description; - const firstLine = taskDesc.split('\n')[0].trim(); - // If the first line is a title like "Investigate GitHub Issue #36", use the next meaningful line - if (firstLine.toLowerCase().startsWith('investigate') && taskDesc.includes('\n\n')) { - const sections = taskDesc.split('\n\n'); - // Find the first paragraph that's not a title - for (const section of sections) { - const trimmed = section.trim(); - // Skip headers and short lines - if (trimmed.startsWith('#') || trimmed.length < 20) continue; - // Skip the "Please analyze" instruction at the end - if (trimmed.startsWith('Please analyze')) continue; - description = trimmed.substring(0, 200).split('\n')[0]; - break; - } - } - // If still no description, use a shortened version of task_description - if (!description) { - description = firstLine.substring(0, 150); - } + // Use the full task description for the modal view + description = requirements.task_description; } } catch { // Ignore parse errors diff --git a/apps/frontend/src/renderer/components/task-detail/TaskDetailModal.tsx b/apps/frontend/src/renderer/components/task-detail/TaskDetailModal.tsx index f67f6282..c70395bb 100644 --- a/apps/frontend/src/renderer/components/task-detail/TaskDetailModal.tsx +++ b/apps/frontend/src/renderer/components/task-detail/TaskDetailModal.tsx @@ -393,7 +393,7 @@ function TaskDetailModalContent({ open, task, onOpenChange, onSwitchToTerminals, {/* Overview Tab */} -
+
{/* Metadata */} diff --git a/apps/frontend/src/renderer/components/task-detail/TaskMetadata.tsx b/apps/frontend/src/renderer/components/task-detail/TaskMetadata.tsx index 2deab047..34e5180d 100644 --- a/apps/frontend/src/renderer/components/task-detail/TaskMetadata.tsx +++ b/apps/frontend/src/renderer/components/task-detail/TaskMetadata.tsx @@ -138,10 +138,15 @@ export function TaskMetadata({ task }: TaskMetadataProps) { {/* Description - Primary Content */} {task.description && ( -
- - {task.description} - +
+
+ + {task.description} + +
)}