app-server: document thread and turn IDs are UUID7 (#27714)

It's actually a very nice property that these are UUID7s, so documenting
them so we think twice before changing it away from UUID7s in the
future.
This commit is contained in:
Owen Lin authored and GitHub committed 2026-06-23 11:46:36 -07:00
1 parent d69828e18b
commit 8d80b0176a
22 files changed
+59 -4

No files matched your search

@@ -133,6 +133,7 @@ pub struct GitInfo {
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct Thread {
/// Identifier for this thread. Codex-generated thread IDs are UUIDv7.
pub id: String,
/// Session id shared by threads that belong to the same session tree.
pub session_id: String,
@@ -186,6 +187,7 @@ pub struct Thread {
#[serde(rename_all = "camelCase")]
#[ts(export_to = "v2/")]
pub struct Turn {
/// Identifier for this turn. Codex-generated turn IDs are UUIDv7.
pub id: String,
/// Thread items currently included in this turn payload.
pub items: Vec<ThreadItem>,