Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Nov 13, 2024

Important

Default task title changed to empty string, using label if title is empty in TaskBlock and TaskBlockYAML.

  • Behavior:
    • In agent.py, create_task_and_step_from_block() now uses task_block.label if task_block.title is empty.
  • Models:
    • In block.py, TaskBlock default title changed from "Untitled Task" to an empty string.
    • In yaml.py, TaskBlockYAML default title changed from "Untitled Task" to an empty string.

This description was created by Ellipsis for 0f139d3. It will automatically update as commits are pushed.

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Default task title changed to empty string, using label if title is empty in `TaskBlock` and `TaskBlockYAML`.
>
>   - **Behavior**:
>     - In `agent.py`, `create_task_and_step_from_block()` now uses `task_block.label` if `task_block.title` is empty.
>   - **Models**:
>     - In `block.py`, `TaskBlock` default `title` changed from "Untitled Task" to an empty string.
>     - In `yaml.py`, `TaskBlockYAML` default `title` changed from "Untitled Task" to an empty string.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for 0f4f66b817165e2cfafe3f8415b79176e52e3854. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on 0f139d3 in 18 seconds

More details
  • Looked at 41 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/agent.py:134
  • Draft comment:
    Ensure that task_block.label is always available and non-empty to avoid potential issues when task_block.title is empty.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The change in the PR is to set the default title of TaskBlock and TaskBlockYAML to an empty string and use the label if the title is empty. This change is correctly implemented in the code.

Workflow ID: wflow_Ki5mEaU7cAMGBCa6


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to 0f139d3 in 20 seconds

More details
  • Looked at 41 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/agent.py:134
  • Draft comment:
    Ensure task_block.label is always available when task_block.title is empty to avoid potential issues. This change is correctly implemented here.
  • Reason this comment was not posted:
    Confidence changes required: 20%
    The change in agent.py to use task_block.label if task_block.title is empty is correctly implemented. However, the default title in TaskBlock and TaskBlockYAML is set to an empty string, which aligns with the PR description.

Workflow ID: wflow_pL6AA3ZmmVgokMFI


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@wintonzheng wintonzheng merged commit 11909cb into main Nov 13, 2024
2 checks passed
@wintonzheng wintonzheng deleted the shu/task_title branch November 13, 2024 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant