- Notifications
You must be signed in to change notification settings - Fork947
feat(site): add AI task status to deployment banner#18919
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
base:main
Are you sure you want to change the base?
feat(site): add AI task status to deployment banner#18919
Conversation
- Add AITasksStatsResponse interface for AI task statistics- Create aiTasksStats query helper for fetching AI task data- Add getAITasksStats API method to fetch task statistics- Integrate AI task status display in DeploymentBannerView- Show active, completed, and failed AI task counts with icons- Respect hide_ai_tasks configuration setting- Follow existing deployment banner styling patternsCo-Authored-By: ben@coder.com <me@bpmct.net>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
I have read the CLA Document and I hereby sign the CLA You can retrigger this bot by commentingrecheck in this Pull Request.Posted by theCLA Assistant Lite bot. |
Co-Authored-By: ben@coder.com <me@bpmct.net>
- Add AITasksStatsResponse struct to codersdk/aitasks.go- Implement aiTasksStats handler in coderd/aitasks.go with mock data- Register /api/experimental/aitasks/stats route in coderd/coderd.go- Remove manual TypeScript type definition (will be auto-generated by CI)Co-Authored-By: ben@coder.com <me@bpmct.net>
- Fix unused receiver warning in aiTasksStats handler- Ensure AITasksStatsResponse type is properly exported- Apply code formatting fixesCo-Authored-By: ben@coder.com <me@bpmct.net>
- Reorder imports in DeploymentBanner.tsx per biome formatter- Resolves fmt CI check failureCo-Authored-By: ben@coder.com <me@bpmct.net>
Uh oh!
There was an error while loading.Please reload this page.
feat(site): add AI task status to deployment banner
Summary
Adds AI task statistics display to the Coder homepage deployment banner, showing active, completed, and failed AI task counts. This implements both the backend API (
/api/experimental/aitasks/stats
) and frontend integration to surface AI agent activity to users.Key Components:
CODER_HIDE_AI_TASKS
configurationReview & Testing Checklist for Human
CODER_HIDE_AI_TASKS=true
properly hides the AI stats section/api/experimental/aitasks/stats
directly to confirm endpoint works and returns expected JSON structureAITasksStatsResponse
type (I manually added it due to local Go version issues)Recommended Test Plan:
CODER_HIDE_AI_TASKS=true
to confirm hidingDiagram
Notes