[GH-ISSUE #1378] Inconsistent workspace name length validation? #878

Closed
opened 2026-02-22 18:21:57 -05:00 by yindo · 3 comments
Owner

Originally created by @jazelly on GitHub (May 13, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1378

How are you running AnythingLLM?

All versions

What happened?

in the onboarding flow, the workspace name length is restricted to be minimum 4 characters, while in the sidebar, a user can create a workspace name with any length.
Screenshot 2024-05-13 at 7 12 18 pm

Are there known steps to reproduce?

No response

Originally created by @jazelly on GitHub (May 13, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1378 ### How are you running AnythingLLM? All versions ### What happened? in the onboarding flow, the workspace name length is restricted to be minimum 4 characters, while in the sidebar, a user can create a workspace name with any length. <img width="714" alt="Screenshot 2024-05-13 at 7 12 18 pm" src="https://github.com/Mintplex-Labs/anything-llm/assets/28685065/11ce6669-c334-4ff5-88b9-4843493c2847"> ### Are there known steps to reproduce? _No response_
yindo added the enhancementUI/UX labels 2026-02-22 18:21:57 -05:00
yindo closed this issue 2026-02-22 18:21:57 -05:00
Author
Owner

@timothycarambat commented on GitHub (May 13, 2024):

This is not a "strict" validation. We just wanted to have it to where the workspace name was not just a or something like that. I suppose it could be argued it doesn't make sense and we should permit anything since in the landing page that is also allowed

@timothycarambat commented on GitHub (May 13, 2024): This is not a "strict" validation. We just wanted to have it to where the workspace name was not just `a` or something like that. I suppose it could be argued it doesn't make sense and we should permit anything since in the landing page that is also allowed
Author
Owner

@jazelly commented on GitHub (May 13, 2024):

@timothycarambat Yes, exactly, I think it's up to the design, but considering the name length has been allowed to be less than 4 characters in the workspace settings page, wouldn't it be kind of breaking backward compatibility by reintroducing that?

So IMHO, probably just remove the workspace length restriction in the onboarding flow. I'm happy to raise a PR to address this trivial change.

@jazelly commented on GitHub (May 13, 2024): @timothycarambat Yes, exactly, I think it's up to the design, but considering the name length has been allowed to be less than 4 characters in the workspace settings page, wouldn't it be kind of breaking backward compatibility by reintroducing that? So IMHO, probably just remove the workspace length restriction in the onboarding flow. I'm happy to raise a PR to address this trivial change.
Author
Owner

@timothycarambat commented on GitHub (May 14, 2024):

IIRC, the reason it every existed is because in like the v0 version of AnythingLLM we did not use slugs for the paths, so there was no guarantee they would be unique. Now, that is long long gone and you can have 40 workspaces all named a and they will get unique slugs so its basically a non-issue now and that limitation can be removed.

@timothycarambat commented on GitHub (May 14, 2024): IIRC, the reason it every existed is because in like the v0 version of AnythingLLM we did not use `slugs` for the paths, so there was no guarantee they would be unique. Now, that is long long gone and you can have 40 workspaces all named `a` and they will get unique slugs so its basically a non-issue now and that limitation can be removed.
yindo changed title from Inconsistent workspace name length validation? to [GH-ISSUE #1378] Inconsistent workspace name length validation? 2026-06-05 14:37:42 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#878