Skip to content

Commit e494011

Browse files
JihaoXinclaude
andcommitted
Project ID: use full UUID, slug only for display name
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 45461f6 commit e494011

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ark/webapp/routes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -772,13 +772,12 @@ async def api_create_project(
772772
if active:
773773
raise HTTPException(400, "You already have an active project. Wait for it to finish.")
774774

775-
# Generate project ID: uuid prefix + slug from title/idea
775+
# Generate project ID: full UUID
776+
project_id = str(uuid.uuid4())
776777
slug = _slugify(title or idea[:60] or "project")
777-
project_id = str(uuid.uuid4())[:8] + "-" + slug
778778

779779
# Auto-generate title from idea if not provided
780780
if not title and idea:
781-
# Use first sentence or first 100 chars of idea as initial title
782781
first_sentence = idea.split('.')[0].strip()
783782
title = first_sentence[:100] if first_sentence else idea[:100]
784783

0 commit comments

Comments
 (0)