Skip to content

Fix duplicate default projects and add one-time cleanup#29

Merged
xaelophone merged 1 commit into
mainfrom
codex/projects-duplication-dedupe-fix
Feb 26, 2026
Merged

Fix duplicate default projects and add one-time cleanup#29
xaelophone merged 1 commit into
mainfrom
codex/projects-duplication-dedupe-fix

Conversation

@xaelophone

Copy link
Copy Markdown
Collaborator

Summary

  • prevent repeated first-login seeding by keying initialization off stable user id
  • make default seeding idempotent for Welcome and Essay projects
  • add one-time per-user duplicate cleanup for default projects with conservative safety checks
  • run cleanup on both app root redirect and ProjectSwitcher first fetch so direct project routes are covered

Safety

  • cleanup only targets default titles: Welcome to Hermes, What Does a Tool Owe You?, My First Project
  • deletes only exact content duplicates created within 15 minutes
  • skips groups containing any published/slugged project
  • stores a local one-time marker per user per browser

Validation

  • npx eslint apps/web/src/App.jsx apps/web/src/pages/FocusPage/ProjectSwitcher.jsx

@vercel

vercel Bot commented Feb 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hermes Ready Ready Preview, Comment Feb 26, 2026 5:29pm

Request Review

@xaelophone
xaelophone merged commit 3029233 into main Feb 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant