Skip to content

Commit 1d27d4f

Browse files
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 ```
1 parent 246a829 commit 1d27d4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/pages/TasksPage/TasksPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ export const data = {
489489
templateId: string,
490490
): Promise<Task> {
491491
const workspace = await API.createWorkspace(userId, {
492-
name: `ai-task-${new Date().getTime()}`,
492+
name: `task-${new Date().getTime()}`,
493493
template_id: templateId,
494494
rich_parameter_values: [
495495
{ name: AI_PROMPT_PARAMETER_NAME, value: prompt },

0 commit comments

Comments
 (0)