Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(coderd): ensure a newly created task can be fetched#19670

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

Merged
DanielleMaywood merged 2 commits intomainfromdanielle/tasks/fix-tasks-get
Sep 2, 2025

Conversation

DanielleMaywood
Copy link
Contributor

Due to how we currently label a workspace as a task, there is a delay between when a task workspace is created and when it is labelled as a task.

This PR introduces fallback check for when a workspace doesnot haveHasAITask set. This fallback check tests to see if the special "AI Prompt" parameter is present in the workspace's build parameters.

@DanielleMaywoodDanielleMaywood changed the titlefix(coderd): allow fetching a newly created taskfix(coderd): ensure a newly created task can be fetchedSep 2, 2025
Due to how we currently label a workspace as a task, there is a delaybetween when a task workspace is created and when it is labelled asa task.This PR introduces fallback check for when a workspace does _not_ have`HasAITask` set. This fallback check tests to see if the special "AIPrompt" parameter is present in the workspace's build parameters.
{Name:codersdk.AITaskPromptParameterName,Value:wantPrompt},
}
})
coderdtest.AwaitWorkspaceBuildJobCompleted(t,client,workspace.LatestBuild.ID)
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Removing this call effectively tests that we can fetch a taskprior to the build job being finished

mafredri reacted with thumbs up emoji
@DanielleMaywoodDanielleMaywood marked this pull request as ready for reviewSeptember 2, 2025 11:47
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

:shipit:

@DanielleMaywoodDanielleMaywood merged commit12bce12 intomainSep 2, 2025
47 of 48 checks passed
@DanielleMaywoodDanielleMaywood deleted the danielle/tasks/fix-tasks-get branchSeptember 2, 2025 12:25
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 2, 2025
Copy link
Member

@johnstcnjohnstcn left a comment

Choose a reason for hiding this comment

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

post-merge 🦭 of 👍

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn left review comments

@mafredrimafredrimafredri approved these changes

Assignees

@DanielleMaywoodDanielleMaywood

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@DanielleMaywood@mafredri@johnstcn

[8]ページ先頭

©2009-2025 Movatter.jp