Skip to content

fix(api): resume turns as the user who started them - #1703

Merged
dcramer merged 1 commit into
mainfrom
codex/slack-native-turn
Aug 27, 2026
Merged

dcramer merged 1 commit into
mainfrom
codex/slack-native-turn

Conversation

@dcramer

@dcramer dcramer commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

Conversation API Turns now resume as the user who started them. Previously, resume rebuilt the Actor from the Conversation's first stored Actor. On a Conversation connected to Slack, authorization could therefore resume the Turn as the Slack user instead of the API user.

Resume now rebuilds the Actor from the stored user Message for that Turn. The durable user ID is required; email and profile fields remain optional. This adds no state, schema, provider type, or compatibility path. The existing API authorization test remains unchanged. A separate integration test connects a Conversation to Slack with one user, starts an API Turn with another user, completes authorization, and checks that both Runs preserve the complete API Actor.

The runtime vocabulary and provider-boundary policy now state that Source, Actor, Location, Destination, and external publishing are independent. Provider fields may reach the agent and its tools when needed, but they do not select another runtime or grant delivery.

Refs #1563

@vercel

vercel Bot commented Aug 26, 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 27, 2026 4:33am

Request Review

@dcramer
dcramer marked this pull request as ready for review August 26, 2026 05:02
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dashboard visual evidence

Mode: path-selected
Selected: gallery-index, conversations, conversation-detail, conversation-detail-focused

Triggered by:

  • packages/junior-dashboard/src/client/conversations/conversationOutbox.ts
  • packages/junior-dashboard/src/client/pages/memory/memoryRecord.ts
  • packages/junior-dashboard/src/client/types.ts
  • packages/junior-dashboard/src/mock-reporting/fixtures.ts
  • packages/junior-dashboard/tests/conversation-outbox.test.ts
  • packages/junior-dashboard/tests/pending-mailbox-stack.test.tsx
  • packages/junior-dashboard/tests/pending-mailbox-transcript.test.ts

Component gallery index · desktop

Component gallery index · desktop

Conversations · desktop

Conversations · desktop

Conversations · mobile

Conversations · mobile

Conversation detail · desktop

Conversation detail · desktop

Conversation detail · mobile

Conversation detail · mobile

Conversation detail · focused composer · mobile

Conversation detail · focused composer · mobile

Full-page screenshots from the mock dashboard. Not a pixel-diff gate.

@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 ec98964. Configure here.

@dcramer
dcramer force-pushed the codex/slack-native-turn branch from ec98964 to 7727734 Compare August 27, 2026 03:49
@dcramer dcramer changed the title ref(chat): make Conversation API turns native fix(api): preserve turn actor across resume Aug 27, 2026
@github-actions github-actions Bot added risk: low PR risk score: low and removed risk: high PR risk score: high labels Aug 27, 2026
@dcramer dcramer changed the title fix(api): preserve turn actor across resume fix(api): resume turns as the user who started them Aug 27, 2026
@dcramer
dcramer force-pushed the codex/slack-native-turn branch from 7727734 to 2d6018f Compare August 27, 2026 03:57
@dcramer
dcramer force-pushed the codex/slack-native-turn branch from 2d6018f to c34a3a1 Compare August 27, 2026 04:00
@dcramer
dcramer force-pushed the codex/slack-native-turn branch 2 times, most recently from 23bf2ca to bbffa37 Compare August 27, 2026 04:31
@dcramer
dcramer force-pushed the codex/slack-native-turn branch from bbffa37 to 349cb6d Compare August 27, 2026 04:32
@github-actions github-actions Bot added risk: medium PR risk score: medium and removed risk: low PR risk score: low labels Aug 27, 2026
@dcramer
dcramer merged commit aab1c67 into main Aug 27, 2026
38 checks passed
@dcramer
dcramer deleted the codex/slack-native-turn branch August 27, 2026 04:36

This branch was successfully deployed

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

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant