Skip to content

Fix on-demand tool persist unlocking in-flight natal generate - #58

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-286c
Draft

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-286c

Conversation

@cursor

@cursor cursor Bot commented Aug 25, 2026

Copy link
Copy Markdown

What changed

  • On-demand tool visits no longer complete generationLocks / generationJobs or rewrite users.profileDataHash.
  • Generate Full Report natal commit still finalizes those fields via finalizeGeneration: true.

Why this change is safe

Verification

  • pnpm exec eslint on touched files
  • pnpm test — 70 suites / 383 tests
  • pnpm run security
  • Playwright smoke not required (no UI/routing change)

Regression prevention

  • tests/unit/onDemandPersistFinalize.test.ts fails before this change (on-demand persist wrote generationLocks completed)
  • Natal generate still calls persist with finalizeGeneration: true (tests/integration/profile-generate.test.ts)

Release checklist (solo-friendly)

  • CI is green
  • Ready to merge to main after CI
  • Post-merge: double-click Generate, immediately open Tarot — natal lock should stay running until natal persist finishes
Open in Web View Automation 

On-demand tool visits were completing generationLocks/jobs and rewriting
users.profileDataHash. A concurrent Generate that returns 409 already
sends the user to /tools, so opening a tool released the in-flight natal
lock. Finalize those writes only for Generate Full Report natal commit.

Co-authored-by: Andy Oliver Rozario <andyrozario7@gmail.com>
@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
future-seer Ready Ready Preview Aug 25, 2026 11:15am

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