Skip to content

refactor: generate task name fallback on coderd - #19447

Merged
DanielleMaywood merged 6 commits into
mainfrom
danielle/tasks/generate-fallback-name-on-coderd
Aug 21, 2025
Merged

DanielleMaywood merged 6 commits into
mainfrom
danielle/tasks/generate-fallback-name-on-coderd

Conversation

@DanielleMaywood

Copy link
Copy Markdown
Contributor

Instead of generating the fallback task name on the website, we instead generate it on coderd.

@DanielleMaywood
DanielleMaywood force-pushed the danielle/tasks/generate-fallback-name-on-coderd branch 2 times, most recently from f8b0b84 to 98633f1 Compare August 20, 2025 12:27
Instead of generating the fallback task name on the website, we instead
generate it on coderd.
@DanielleMaywood
DanielleMaywood force-pushed the danielle/tasks/generate-fallback-name-on-coderd branch from 98633f1 to 7cf1815 Compare August 20, 2025 12:57
Comment on lines -23 to -35
- 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`

Copy link
Copy Markdown
Contributor Author

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.

@DanielleMaywood
DanielleMaywood marked this pull request as ready for review August 21, 2025 08:25
@DanielleMaywood
DanielleMaywood requested review from johnstcn and mafredri and removed request for aslilac August 21, 2025 08:26
Comment thread coderd/taskname/taskname.go Resolved

@mafredri mafredri left a comment •

Copy link
Copy Markdown
Member

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 --.

Comment thread coderd/taskname/taskname.go Resolved
Comment thread coderd/taskname/taskname.go Resolved
@DanielleMaywood
DanielleMaywood merged commit 2521e73 into main Aug 21, 2025
@DanielleMaywood
DanielleMaywood deleted the danielle/tasks/generate-fallback-name-on-coderd branch August 21, 2025 10:06
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants