Skip to content

bug: tasks: new tasks created with outdated template version #19744

Closed

Description

@johnstcn

...if you launch a new Task after updating the supporting template, the new version of the template isn't automatically used? You need to go to the supporting workspace, and then update/restart.
Seems like the Task UI maybe caching a template version?

Reproducible on 2.25.1

Activity

  1. added theissue type on Sep 9, 2025
  2. BrunoQuaresma commented on Sep 22, 2025

    @BrunoQuaresma
    Contributor

    After taking a closer look at the code, I think I’ve found the issue.

    To create a task, we need to know whether the template has presets. If it does, we must provide them. On screen load, we fetch the template—including the active template version—so we can display the correct preset options. If the user submits the prompt after the screen has loaded, it will use the version that was loaded at that time, not necessarily the most recent one.

    This makes the UI solution a bit tricky, since template versions can change in ways that affect the presets. If we still want to automatically create prompts with the latest version, we’d need to handle three scenarios:

    • All presets were removed
    • The selected preset was removed
    • The selected preset is still available

    Implementation-wise, we’d need to check—right before submission—whether the loaded version is still the active one. If not, we’d compare presets and:

    • If all presets were removed, create the task without a preset
    • If the selected preset was removed, prompt the user to choose another
    • If the selected preset is still available, proceed as-is

    Given the added complexity, I’m wondering if this is something we want to prioritize right now. What do you think?

  3. mtojek commented on Sep 23, 2025

    @mtojek
    Member

    @BrunoQuaresma, assuming this is something we agreed to deliver in the sprint, my answer is yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions