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

feat: add the /aitasks/prompts endpoint#18464

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
hugodutka merged 8 commits intomainfromhugodutka/bulk-wb-parameters
Jun 24, 2025

Conversation

hugodutka
Copy link
Contributor

@hugodutkahugodutka commentedJun 19, 2025
edited
Loading

Add an endpoint to fetch AI task prompts for multiple workspace builds at the same time. A prompt is the value of the "AI Prompt" workspace build parameter. On main, the only way our API allows fetching workspace build parameters is by using the/workspacebuilds/$build_id/parameters endpoint, requiring a separate API call for every build.

The Tasks dashboard fetches Task workspaces in order to show them in a list, and then needs to fetch the value of theAI Prompt parameter for every task workspace (using its latest build id), requiring an additional API call for each list item. This endpoint will allow the dashboard to make just 2 calls to render the list: one to fetch task workspaces, the other to fetch prompts.

Screenshot 2025-06-20 at 11 33 11

Related tocoder/internal#660.

@hugodutkahugodutkaforce-pushed thehugodutka/bulk-wb-parameters branch 6 times, most recently fromaa79b8d toe9e6341CompareJune 20, 2025 10:01
@hugodutkahugodutka marked this pull request as ready for reviewJune 20, 2025 10:11
@hugodutkahugodutkaforce-pushed thehugodutka/bulk-wb-parameters branch 2 times, most recently frome4abd39 tod80c61aCompareJune 20, 2025 14:07
@hugodutkahugodutka changed the titlefeat: add the /workspacebuilds/parameters endpointfeat: add the /aitasks/prompts endpointJun 20, 2025
@hugodutkahugodutkaforce-pushed thehugodutka/bulk-wb-parameters branch 5 times, most recently fromf114f43 tobf23151CompareJune 23, 2025 14:52
Copy link
Member

@bpmctbpmct left a comment
edited
Loading

Choose a reason for hiding this comment

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

nit. can it be/tasks instead? down the road, we could imagine this being used to monitor status of other jobs (non ai related) or perhaps across multiple systems (AI, non AI, etc)

I know it's an unstable endpoint so not the end of the world

Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

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

Looking good 👍

@hugodutkahugodutkaforce-pushed thehugodutka/bulk-wb-parameters branch frombf23151 to1273e3cCompareJune 24, 2025 10:15
@hugodutka
Copy link
ContributorAuthor

can it be /tasks instead? down the road, we could imagine this being used to monitor status of other jobs

@bpmct I'd rather we left it specific to AI tasks for now. Once we define a stable API and decide it should handle other types of tasks we can change the prefix. Since it's an experimental endpoint, we'll be able to do it at any time.

Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

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

LGTM

@hugodutkahugodutkaforce-pushed thehugodutka/bulk-wb-parameters branch from1273e3c to5a42c7eCompareJune 24, 2025 10:52
@hugodutkahugodutka merged commit670fa4a intomainJun 24, 2025
36 of 37 checks passed
@hugodutkahugodutka deleted the hugodutka/bulk-wb-parameters branchJune 24, 2025 11:06
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 24, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@bpmctbpmctbpmct left review comments

@dannykoppingdannykoppingdannykopping approved these changes

Assignees

@hugodutkahugodutka

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@hugodutka@dannykopping@bpmct

[8]ページ先頭

©2009-2025 Movatter.jp