Skip to content

ref(chat): Store parent on Conversation directly - #1718

Merged
dcramer merged 1 commit into
mainfrom
codex/continue-location-delivery
Aug 27, 2026
Merged

dcramer merged 1 commit into
mainfrom
codex/continue-location-delivery

Conversation

@dcramer

@dcramer dcramer commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Conversation now has an optional parentConversationId field. Location is a
separate optional field. Setting a parent does not create or copy Location. A
Conversation used for an Agent invocation uses the same type as every other
Conversation. Its Run reads the parent Conversation when tools need that
Location, and its output stays inside Junior.

This removes the one-field ConversationLineage wrapper and the shared lookup
that mixed Location, Source, and Destination. SQL already stores
parent_conversation_id directly, so the change needs no migration. Agent
invocations are not enabled in production, so this is an internal hard cutover
with no compatibility path.

Refs #1563

@vercel

vercel Bot commented Aug 27, 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 9:26pm

Request Review

@dcramer
dcramer force-pushed the codex/continue-location-delivery branch from 39810a8 to 09c410d Compare August 27, 2026 20:53
@dcramer dcramer changed the title ref(chat): Persist Location on child Conversations ref(chat): Make child Conversations own Location Aug 27, 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 2 potential issues.

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 09c410d. Configure here.

@dcramer
dcramer force-pushed the codex/continue-location-delivery branch from 09c410d to 66080d5 Compare August 27, 2026 21:09
@dcramer dcramer changed the title ref(chat): Make child Conversations own Location ref(chat): Read parent Location for child Runs Aug 27, 2026
@dcramer
dcramer marked this pull request as ready for review August 27, 2026 21:17
@github-actions github-actions Bot added the risk: low PR risk score: low label Aug 27, 2026
Replace the one-field lineage wrapper with parentConversationId on Conversation.

Agent Runs read Location from the parent Conversation without copying it.

Refs #1563
@dcramer
dcramer force-pushed the codex/continue-location-delivery branch from 66080d5 to 0131c96 Compare August 27, 2026 21:24
@dcramer dcramer changed the title ref(chat): Read parent Location for child Runs ref(chat): Store parent on Conversation directly Aug 27, 2026
@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 0ff4d7b into main Aug 27, 2026
38 checks passed
@dcramer
dcramer deleted the codex/continue-location-delivery branch August 27, 2026 21:42

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 0131c96e 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