Skip to content

feat(conversations): Create private dashboard roots - #1406

Merged
dcramer merged 3 commits into
mainfrom
feat/private-dashboard-conversation-create
Aug 10, 2026
Merged

dcramer merged 3 commits into
mainfrom
feat/private-dashboard-conversation-create

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

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

  • optional visibility on POST /api/conversations
  • durable private root create on the shared API turn path
  • Public / Private toggle on the New conversation screen
  • integration coverage that starts public and private roots through the agent run and asserts:
    • store visibility + sessionSource
    • retry lock-in of the first visibility
    • agent-run routing.source visibility (public vs private)
    • completed transcript messages
  • e2e coverage that create posts visibility: "private"

Still out of scope

  • flipping visibility after create
  • legacy Destination cleanup
  • Slack message copy changes

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 --noEmit
  • pnpm --filter @sentry/junior-dashboard exec tsc -p tsconfig.json --noEmit
  • git diff --check

Refs #1200

Requested by David Cramer.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 10, 2026 11:24pm

Request Review

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]>
@dcramer
dcramer marked this pull request as ready for review August 10, 2026 23:38
@dcramer
dcramer merged commit fba8262 into main Aug 10, 2026
38 checks passed
@dcramer
dcramer deleted the feat/private-dashboard-conversation-create branch August 10, 2026 23:38
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 10, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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 } : {}),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 6b29e57. Configure here.

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 6b29e576 Deployed Aug 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant