Skip to content

feat: add session_id#20437

Merged
jif-oai merged 13 commits into
mainfrom
jif/add-session-id
May 6, 2026
Merged

feat: add session_id#20437
jif-oai merged 13 commits into
mainfrom
jif/add-session-id

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented Apr 30, 2026

Summary

Related to https://openai.slack.com/archives/C095U48JNL9/p1777537279707449
TLDR:
We update the meaning of session ids and thread ids:

  • thread_id stays as now
  • session_id become a shared id between every thread under a /root thread (i.e. every sub-agent share the same session id)

This PR introduces an explicit SessionId and threads it through the protocol/client boundary so session_id and thread_id can diverge when they need to, while preserving compatibility for older serialized session_configured events.

@jif-oai jif-oai requested a review from a team as a code owner April 30, 2026 14:44
Co-authored-by: Codex <noreply@openai.com>
@jif-oai jif-oai force-pushed the jif/add-session-id branch from ab9560c to 1c88229 Compare April 30, 2026 14:54
jif-oai and others added 3 commits April 30, 2026 16:09
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 1, 2026

@codex review

@jif-oai jif-oai changed the title Add session identity type Separate session and thread identity May 1, 2026
@jif-oai jif-oai changed the title Separate session and thread identity feat: add session_id May 1, 2026
@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread codex-rs/tui/src/app_server_session.rs
jif-oai and others added 6 commits May 4, 2026 12:06
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 6, 2026

Flake come from threads_started_via_app_server_are_visible_through_typed_requests which is unrelated. Will fix in a follow-up

@jif-oai jif-oai merged commit a986235 into main May 6, 2026
25 of 26 checks passed
@jif-oai jif-oai deleted the jif/add-session-id branch May 6, 2026 08:48
@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