Skip to content

Allow working on a flow even when the initial task is done #35

@semanser

Description

@semanser

It should be possible to do a continuous prompting after the initial task is done. This would be useful when the user isn't satisfied with the results or wants to make some improvements.

This code probably needs to be modified:

func processDoneTask(db *database.Queries, task database.Task) error {
flow, err := db.UpdateFlowStatus(context.Background(), database.UpdateFlowStatusParams{
ID: task.FlowID.Int64,
Status: database.StringToPgText("finished"),
})
if err != nil {
return fmt.Errorf("failed to update task status: %w", err)
}
subscriptions.BroadcastFlowUpdated(task.FlowID.Int64, &gmodel.Flow{
ID: uint(flow.ID),
Status: gmodel.FlowStatus("finished"),
Terminal: &gmodel.Terminal{},
})
return nil
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions