auto-claude: subtask-1-1 - Add optional title field to Subtask dataclass

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
AndyMik90
2026-02-18 15:05:51 +01:00
co-authored by Claude Opus 4.6
parent 819f98d9fa
commit e96c15e1bb
@@ -20,6 +20,7 @@ class Subtask:
id: str
description: str
title: str | None = None
status: SubtaskStatus = SubtaskStatus.PENDING
# Scoping
@@ -53,6 +54,8 @@ class Subtask:
"description": self.description,
"status": self.status.value,
}
if self.title:
result["title"] = self.title
if self.service:
result["service"] = self.service
if self.all_services:
@@ -89,6 +92,7 @@ class Subtask:
return cls(
id=data["id"],
description=data["description"],
title=data.get("title"),
status=SubtaskStatus(data.get("status", "pending")),
service=data.get("service"),
all_services=data.get("all_services", False),