Skip to content

fix: persist rejoin memory + one-shot 500 milestone - #137

Open
heavygee wants to merge 1 commit into
mainfrom
fix/136-rejoin-memory-milestone
Open

fix: persist rejoin memory + one-shot 500 milestone#137
heavygee wants to merge 1 commit into
mainfrom
fix/136-rejoin-memory-milestone

Conversation

@heavygee

Copy link
Copy Markdown
Member

Summary

  • Persist welcomedUsers.json more loudly, seed current human IDs at startup when welcomeCount > 0 but the file is empty (prod gap that let rejoins look brand-new).
  • Record welcomed users on the pfp-only early-return path so those IDs are not lost.
  • One-shot the golden 500 VIP welcome via milestone500.json; at startup mark it celebrated if the server is already at/past 500 humans.

Test plan

  • npm test (64 passed)
  • After merge/deploy: Coolify data volume has welcomedUsers.json and milestone500.json
  • Rejoin of an existing member gets “Welcome back”, not a full image / VIP welcome

Fixes #136

Made with Cursor

Welcomed IDs were never durable in prod (missing welcomedUsers.json), and
hitting exactly 500 humans again on rejoin re-fired the golden VIP welcome.
Seed the roster on startup when history exists but the file is empty, record
pfp-only welcomes, and mark milestone500 celebrated once.

Fixes #136

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

fix: persist welcomedUsers + one-shot 500 milestone (rejoins got VIP welcome)

1 participant