Skip to content

Allow ThreadManager to customize thread ID generation - #37350

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6c38c862e30a50bad944a994bcbccf7d1e7ada24
Aug 7, 2026
Merged

Allow ThreadManager to customize thread ID generation#37350
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6c38c862e30a50bad944a994bcbccf7d1e7ada24

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 7, 2026

Copy link
Copy Markdown

Allow ThreadManager to customize thread ID generation

What changed

  • Add ThreadManager::with_thread_id_generator to configure ID allocation for new root, child, and forked threads.
  • Keep the standard UUIDv7 generator as the default and preserve stored IDs when resuming threads.
  • Add ThreadId::from_u128 for constructing identifiers from UUID-compatible values.

Testing

  • Cover default allocation, custom IDs across roots, child agents, and forks, and ID preservation on resume.

## What changed

- Add `ThreadManager::with_thread_id_generator` to configure ID allocation for new root, child, and forked threads.
- Keep the standard UUIDv7 generator as the default and preserve stored IDs when resuming threads.
- Add `ThreadId::from_u128` for constructing identifiers from UUID-compatible values.

## Testing

- Cover default allocation, custom IDs across roots, child agents, and forks, and ID preservation on resume.

GitOrigin-RevId: 6c38c862e30a50bad944a994bcbccf7d1e7ada24
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6c38c862e30a50bad944a994bcbccf7d1e7ada24 branch from b34b969 to 9457f8f Compare August 7, 2026 01:37
@copyberry
copyberry Bot merged commit 9457f8f into main Aug 7, 2026
29 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6c38c862e30a50bad944a994bcbccf7d1e7ada24 branch August 7, 2026 01:38
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 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