mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
refactor: reduce the default workspace name for a task (#18193)
Subdomains should have 63 max characters, so we don't want to have a long default workspace name that could overflow this limit. With that in mind, I'm reducing 3 characters from the default name. PS: I've been facing issues with that already. Eg: ``` claude-code-web--dev--ai-task-1748889021126--brunoquaresma--apps.sao-paulo.fly.dev.coder.com ```
This commit is contained in:
@@ -489,7 +489,7 @@ export const data = {
|
||||
templateId: string,
|
||||
): Promise<Task> {
|
||||
const workspace = await API.createWorkspace(userId, {
|
||||
name: `ai-task-${new Date().getTime()}`,
|
||||
name: `task-${new Date().getTime()}`,
|
||||
template_id: templateId,
|
||||
rich_parameter_values: [
|
||||
{ name: AI_PROMPT_PARAMETER_NAME, value: prompt },
|
||||
|
||||
Reference in New Issue
Block a user