Skip to content

Box the thread startup future in spawn_thread - #62477

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5004651423551e173b1cc98b185c6a1dc2bc097e
Nov 19, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5004651423551e173b1cc98b185c6a1dc2bc097e

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Box the thread startup future in spawn_thread

Why

Boxing the thread startup future at each call site makes each caller
compile its own copy of the future.

What changed

Return a BoxFuture from spawn_thread and move the startup logic into
spawn_thread_inner. Thread start, resume, and fork paths now await
spawn_thread directly.

## Why

Boxing the thread startup future at each call site makes each caller
compile its own copy of the future.

## What changed

Return a `BoxFuture` from `spawn_thread` and move the startup logic into
`spawn_thread_inner`. Thread start, resume, and fork paths now await
`spawn_thread` directly.

GitOrigin-RevId: 5004651423551e173b1cc98b185c6a1dc2bc097e
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/5004651423551e173b1cc98b185c6a1dc2bc097e branch from 91cf8ca to 6271f35 Compare November 19, 2026 09:48
@copyberry
copyberry Bot merged commit 6271f35 into main Nov 19, 2026
10 of 23 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-19T09:48:24.255563Z 91cf8ca PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/5004651423551e173b1cc98b185c6a1dc2bc097e branch November 19, 2026 09:48
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 6271f35f Deployed Nov 19, 2026 by mcmorry via Identify potential duplicates (open issues fallback) #64347
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.

8 participants