Skip to content

feat: return session ID from thread/fork#21332

Merged
jif-oai merged 2 commits into
mainfrom
jif/session-id-fork
May 6, 2026
Merged

feat: return session ID from thread/fork#21332
jif-oai merged 2 commits into
mainfrom
jif/session-id-fork

Conversation

@jif-oai

@jif-oai jif-oai commented May 6, 2026

Copy link
Copy Markdown
Collaborator

Why

thread/start and thread/resume already return sessionId, but thread/fork only returned the new thread. That left clients to infer the forked thread's session identity from thread.id, which kept the new session_id / thread_id split implicit at one lifecycle boundary. Follow-up to #20437.

What changed

  • Add sessionId to ThreadForkResponse.
  • Populate it from the forked session configuration.
  • Regenerate the v2 JSON/TypeScript schema fixtures and update the app-server docs/example.
  • Extend the fork integration test to assert the returned sessionId.

Verification

  • Added coverage in thread_fork_creates_new_thread_and_emits_started for the new response field.

@jif-oai jif-oai changed the title feat: return session ID as part of fork feat: return session ID from thread/fork May 6, 2026
@jif-oai jif-oai merged commit 06e5dfa into main May 6, 2026
26 checks passed
@jif-oai jif-oai deleted the jif/session-id-fork branch May 6, 2026 10:04
@github-actions github-actions Bot locked and limited conversation to collaborators May 6, 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