Skip to content

refactor: reduce the default workspace name for a task #18193

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

BrunoQuaresma
Copy link
Collaborator

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

@BrunoQuaresma BrunoQuaresma requested review from bpmct and hugodutka June 2, 2025 18:38
@BrunoQuaresma BrunoQuaresma self-assigned this Jun 2, 2025
@BrunoQuaresma
Copy link
Collaborator Author

@hugodutka just to keep in mind when creating modules, we want to keep the app names smaller as possible.

@bpmct
Copy link
Member

bpmct commented Jun 2, 2025

Can we AI generate the name based on the task using aisdk-go if configured?

@BrunoQuaresma
Copy link
Collaborator Author

Can we AI generate the name based on the task using aisdk-go if configured?

Probably yes, but you are probably talking about a diff prop. In this PR we are talking about the unique workspace name that is used as a slug. In this case, we can't simply only generate it with AI, we need to make sure it is unique and handle possible database errors.

I see AI generated value for the display name 👍

@hugodutka
Copy link
Contributor

We could generate the slug with AI too. If it's already taken then append -2 or something like that.

@BrunoQuaresma BrunoQuaresma merged commit 1d27d4f into main Jun 2, 2025
35 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/fix-subdomain-size branch June 2, 2025 18:51
@github-actions github-actions bot locked and limited conversation to collaborators Jun 2, 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