Skip to content

Allow exec callers to classify new threads - #40161

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/67a55a2b1f91b3a88f946c2af1c2a0989abb3130
Aug 23, 2026
Merged

Allow exec callers to classify new threads#40161
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/67a55a2b1f91b3a88f946c2af1c2a0989abb3130

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 23, 2026

Copy link
Copy Markdown

Allow exec callers to classify new threads

What changed

  • Add a global codex exec --thread-source <SOURCE> option and propagate it to newly created and forked threads.
  • Default the source to user when the option is omitted.
  • Expose the classification as threadSource in the TypeScript SDK. It applies when a thread is first created and does not override the source when resuming an existing thread.

Testing

  • Cover CLI parsing and persisted metadata for new, resumed, and forked threads.
  • Verify that the TypeScript SDK forwards threadSource only for new threads.

## What changed

- Add a global `codex exec --thread-source <SOURCE>` option and propagate it to newly created and forked threads.
- Default the source to `user` when the option is omitted.
- Expose the classification as `threadSource` in the TypeScript SDK. It applies when a thread is first created and does not override the source when resuming an existing thread.

## Testing

- Cover CLI parsing and persisted metadata for new, resumed, and forked threads.
- Verify that the TypeScript SDK forwards `threadSource` only for new threads.

GitOrigin-RevId: 67a55a2b1f91b3a88f946c2af1c2a0989abb3130
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/67a55a2b1f91b3a88f946c2af1c2a0989abb3130 branch from a5e34e1 to a73485d Compare August 23, 2026 00:28
@copyberry
copyberry Bot merged commit a73485d into main Aug 23, 2026
21 of 26 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/67a55a2b1f91b3a88f946c2af1c2a0989abb3130 branch August 23, 2026 00:29
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 23, 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.

3 participants