make task block title empty string by default; use task_block.label for the running task.title if task_block.title is empty (#1181)

This commit is contained in:
Shuchang Zheng
2024-11-12 20:34:26 -08:00
committed by GitHub
parent 9f3af2555c
commit 11909cb1a7
3 changed files with 3 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ class TaskBlock(Block):
block_type: Literal[BlockType.TASK] = BlockType.TASK
url: str | None = None
title: str = "Untitled Task"
title: str = ""
navigation_goal: str | None = None
data_extraction_goal: str | None = None
data_schema: dict[str, Any] | list | None = None

View File

@@ -117,7 +117,7 @@ class TaskBlockYAML(BlockYAML):
block_type: Literal[BlockType.TASK] = BlockType.TASK # type: ignore
url: str | None = None
title: str = "Untitled Task"
title: str = ""
navigation_goal: str | None = None
data_extraction_goal: str | None = None
data_schema: dict[str, Any] | list | None = None