-
Notifications
You must be signed in to change notification settings - Fork 974
refactor: generate task name fallback on coderd #19447
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: generate task name fallback on coderd #19447
Conversation
f8b0b84
to
98633f1
Compare
Instead of generating the fallback task name on the website, we instead generate it on coderd.
98633f1
to
7cf1815
Compare
- End with a random number between 0-99 | ||
- Maximum 32 characters total | ||
- Maximum 28 characters total | ||
- Descriptive of the main task | ||
|
||
Examples: | ||
- "Help me debug a Python script" → "task-python-debug-12" | ||
- "Create a React dashboard component" → "task-react-dashboard-93" | ||
- "Analyze sales data from Q3" → "task-analyze-q3-sales-37" | ||
- "Set up CI/CD pipeline" → "task-setup-cicd-44" | ||
- "Help me debug a Python script" → "task-python-debug" | ||
- "Create a React dashboard component" → "task-react-dashboard" | ||
- "Analyze sales data from Q3" → "task-analyze-q3-sales" | ||
- "Set up CI/CD pipeline" → "task-setup-cicd" | ||
|
||
If you cannot create a suitable name: | ||
- Respond with "task-unnamed" | ||
- Do not end with a random number` |
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.
We previously asked the LLM to generate a random number at the end to help reduce the odds of collision, but we'll move this to be under our control.
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.
Good idea to reduce AI workload, LGTM sans the --
.
Instead of generating the fallback task name on the website, we instead generate it on coderd.