- Notifications
You must be signed in to change notification settings - Fork1.1k
fix(coderd/provisionerdserver): pipe through task id and prompt#20408
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
b56410a tod1fba16Compare0e77536 to39eca6aCompared1fba16 to2f8619dCompare39eca6a to316b12bCompare9299e77 to625db35Compare5fc4328 toef433ccCompare625db35 to5c5117fCompare8fd3604 to6cc3b03Compare5c5117f toa4df0c8Compare9220413 toe605686Comparea4df0c8 to9638ae7Compare| vartaskIDstring | ||
| task,err:=s.Database.GetTaskByWorkspaceID(ctx,workspaceBuild.WorkspaceID) | ||
| iferr!=nil&&!errors.Is(err,sql.ErrNoRows) { | ||
| returnnil,xerrors.Errorf("failed to get task by workspace id: %w",err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
| returnnil,xerrors.Errorf("failed toget task by workspace id: %w",err) | |
| returnnil,xerrors.Errorf("get task by workspace id: %w",err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM, but this change makes me think we should move prompt to thetask_workspace_apps table (and maybe that's a bad name for it) 😅
This would essentially always feed the same prompt into the task, right?
Yep |
5a31c59 intomainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Pipes through the Task's ID and prompt into the provisioner. This is required to support the new
coder_ai_task.promptfield and modifiedcoder_ai_task.idfield.