Nova 9 & TaskResolvableActions

Hello! The following code works in Nova 8.4 but not in Nova 9.1:

class Assistant {
    provideTasks() {
        let task = new Task("Assistant");
        task.setAction(Task.Run, new TaskResolvableAction());
        return [task];
    }
    
    resolveTaskAction(context) {
        console.log("Resolving...");
        const args = [context.config ? "Template" : "Assistant"];
        return new TaskProcessAction("/bin/echo", {args: args});
    }
}

nova.assistants.registerTaskAssistant(new Assistant(), {
    identifier: "example"
});

Nova 9.1 throws an error when the task provided by the assistant is run:

Could not run “Assistant”.
The task may be misconfigured or malformed. Check to make sure its settings are correct and not currently in conflict within source control.

On the other hand, Nova 9.1 resolves the task correctly when run from a template in the JSON manifest:

"tasks": {
    "run": {
        "resolve": "example"
    }
}

Everything works fine in Nova 8.4, as I double-checked by redownloading it from the Panic File Museum.

Thank you!

1 Like

Hello Marco,

Thank you for the report! I will mark this for investigation with Nova 9.2.

Logan

1 Like

Thank you very much, Logan!

Just wanted to follow up on this thread to mention that this issue has been resolved and is just pending our next bug fix release, which we hope to do early next week.

1 Like

Awesome! Thank you, Logan!