Skip to content

Allow hosts to provide agent controllers through ThreadManager - #47808

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/095afbecfee5d47329038d2a97d0cc0081f181df
Sep 24, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/095afbecfee5d47329038d2a97d0cc0081f181df

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Allow hosts to provide agent controllers through ThreadManager

What changed

  • Add ThreadManager::with_agent_control_factory to select a host-owned controller asynchronously using the final thread ID for new and cold-resumed threads. Keep local control as the default, reuse live controllers on warm resume, and preserve parent controllers for internal sessions.
  • Fail startup on factory errors or when a provided controller's identity does not match the session identity.
  • Defer root service-tier updates to host controllers until thread registration succeeds, preventing failed starts from changing settings on a shared controller.

## What changed

- Add `ThreadManager::with_agent_control_factory` to select a host-owned controller asynchronously using the final thread ID for new and cold-resumed threads. Keep local control as the default, reuse live controllers on warm resume, and preserve parent controllers for internal sessions.
- Fail startup on factory errors or when a provided controller's identity does not match the session identity.
- Defer root service-tier updates to host controllers until thread registration succeeds, preventing failed starts from changing settings on a shared controller.

GitOrigin-RevId: 095afbecfee5d47329038d2a97d0cc0081f181df
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/095afbecfee5d47329038d2a97d0cc0081f181df branch from 926c1b1 to fdbe23d Compare September 24, 2026 10:39
@copyberry
copyberry Bot merged commit fdbe23d into main Sep 24, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/095afbecfee5d47329038d2a97d0cc0081f181df branch September 24, 2026 10:39
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 24, 2026
@s1lverkin
s1lverkin deployed to issue-triage September 24, 2026 10:39 — with GitHub Actions Active
@s1lverkin
s1lverkin deployed to issue-triage September 24, 2026 10:39 — with GitHub Actions Active
@s1lverkin
s1lverkin deployed to issue-triage September 24, 2026 10:39 — with GitHub Actions Active
@s1lverkin
s1lverkin deployed to issue-triage September 24, 2026 10:40 — with GitHub Actions Active
@benzhuk
benzhuk deployed to issue-triage September 24, 2026 10:43 — with GitHub Actions Active
@benzhuk
benzhuk deployed to issue-triage September 24, 2026 10:43 — with GitHub Actions Active
@benzhuk
benzhuk deployed to issue-triage September 24, 2026 10:43 — with GitHub Actions Active
@benzhuk
benzhuk deployed to issue-triage September 24, 2026 10:44 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — fdbe23da Deployed Sep 24, 2026 by benzhuk via Identify potential duplicates (open issues fallback) #47971
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