Repository navigation
feat(conversations): Create private dashboard roots - #1406
Conversation
Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Extend the api-turn create path so both public default and private roots assert store state, retry lock-in, and agent-run source visibility. Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6b29e57. Configure here.
| ...(isNewRoot ? { source: "web" as const } : {}), | ||
| ...(source ? { sessionSource: source } : {}), | ||
| ...(isNewRoot ? { visibility: "public" as const } : {}), | ||
| ...(isNewRoot ? { visibility } : {}), |
There was a problem hiding this comment.
Visibility lock-in race on create
Medium Severity
isNewRoot is decided from a store read outside the conversation mutation lock, then used to pass visibility into recordActivity. Concurrent creates that share an idempotency key can both treat the root as new and refresh destination visibility, so a later call can overwrite the first choice. sessionSource stays first-write-wins via coalesce, so access visibility can diverge from the locked source and break the retry lock-in guarantee, including private roots becoming public.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 6b29e57. Configure here.


Next #1200 slice after dropping the Slack footer work.
Dashboard create can start a private conversation. Public remains the default. Private roots stay participant-only for read and write. Create retries keep the first visibility choice.
What this adds
visibilityonPOST /api/conversationsvisibility+sessionSourcerouting.sourcevisibility (publicvsprivate)visibility: "private"Still out of scope
Checks:
pnpm --filter @sentry/junior exec vitest run tests/integration/api-turn-work.test.ts(6 passed)pnpm --filter @sentry/junior exec tsc -p tsconfig.json --noEmitpnpm --filter @sentry/junior-dashboard exec tsc -p tsconfig.json --noEmitgit diff --checkRefs #1200
Requested by David Cramer.
--
View Junior Session [Sentry]