Skip to content

Preserve agent state when unloading idle multi-agent v2 children - #52034

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e36723730af683d2081e495e637f0e6d23548b8d
Oct 8, 2026
Merged

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

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Preserve agent state when unloading idle multi-agent v2 children

What changed

  • Route app-server idle unloading of multi-agent v2 children through local eviction that preserves unread mail and environment selections for reload.
  • Hold residency pins through input submission so newly reloaded children cannot be evicted before receiving their work.
  • Guard listener cleanup against replacement runtimes and subscriptions, and reject local eviction of host-controlled threads.

Testing

Add coverage for unsubscribe-driven eviction followed by followup_task, verifying restored conversation context and exactly-once delivery of queued mail. Extend tests to check that residency pins block eviction and that rejected host eviction preserves the thread and mailbox.

)

## What changed

- Route app-server idle unloading of multi-agent v2 children through local eviction that preserves unread mail and environment selections for reload.
- Hold residency pins through input submission so newly reloaded children cannot be evicted before receiving their work.
- Guard listener cleanup against replacement runtimes and subscriptions, and reject local eviction of host-controlled threads.

## Testing

Add coverage for unsubscribe-driven eviction followed by `followup_task`, verifying restored conversation context and exactly-once delivery of queued mail. Extend tests to check that residency pins block eviction and that rejected host eviction preserves the thread and mailbox.

GitOrigin-RevId: e36723730af683d2081e495e637f0e6d23548b8d
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Note

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e36723730af683d2081e495e637f0e6d23548b8d branch from bbc372c to d2a6dac Compare October 8, 2026 09:39
@copyberry
copyberry Bot merged commit d2a6dac into main Oct 8, 2026
17 of 24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e36723730af683d2081e495e637f0e6d23548b8d branch October 8, 2026 09:39
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 8, 2026
@pavelsliva
pavelsliva deployed to issue-triage October 8, 2026 09:40 — with Image GitHub Actions Active
@pavelsliva
pavelsliva deployed to issue-triage October 8, 2026 09:40 — with Image GitHub Actions Active
@pavelsliva
pavelsliva deployed to issue-triage October 8, 2026 09:40 — with Image GitHub Actions Active
@eranfu
eranfu deployed to issue-triage October 8, 2026 09:43 — with Image GitHub Actions Active
@eranfu
eranfu deployed to issue-triage October 8, 2026 09:43 — with Image GitHub Actions Active
@eranfu
eranfu deployed to issue-triage October 8, 2026 09:43 — with Image GitHub Actions Active
@soup31314
soup31314 deployed to issue-triage October 8, 2026 09:48 — with Image GitHub Actions Active
@soup31314
soup31314 deployed to issue-triage October 8, 2026 09:48 — with Image GitHub Actions Active
@soup31314
soup31314 deployed to issue-triage October 8, 2026 09:48 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
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.

6 participants