Skip to content

feat(app-server): add optional turn_id to thread/fork#30277

Merged
owenlin0 merged 5 commits into
mainfrom
owen/thread_fork_n_turns
Jun 26, 2026
Merged

feat(app-server): add optional turn_id to thread/fork#30277
owenlin0 merged 5 commits into
mainfrom
owen/thread_fork_n_turns

Conversation

@owenlin0

@owenlin0 owenlin0 commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Description

This adds stable optional turnId support to thread/fork. When supplied, the fork copies persisted history through that terminal turn, inclusive, and drops later turns from the new thread.

Omitting or passing null preserves the existing full-history fork behavior, including the interruption marker when the stored source history ends mid-turn.

Why

We're deprecating thread/rollback and this will help certain UX use cases work around it by using thread/fork + turn_id instead.

@owenlin0 owenlin0 marked this pull request as ready for review June 26, 2026 18:30
@owenlin0 owenlin0 requested a review from a team as a code owner June 26, 2026 18:30
@owenlin0 owenlin0 force-pushed the owen/thread_fork_n_turns branch from 0ad3bf8 to 4ff6f87 Compare June 26, 2026 18:38
@owenlin0 owenlin0 requested review from anp-oai and celia-oai June 26, 2026 19:09
@owenlin0 owenlin0 enabled auto-merge (squash) June 26, 2026 19:24
@owenlin0 owenlin0 merged commit f72976a into main Jun 26, 2026
31 checks passed
@owenlin0 owenlin0 deleted the owen/thread_fork_n_turns branch June 26, 2026 19:35
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants