Skip to content

Restore V2 agent identities on root thread resume#32837

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/a1663c1ae60eefadb948cd39f933cd3bbb49a492
Jul 13, 2026
Merged

Restore V2 agent identities on root thread resume#32837
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/a1663c1ae60eefadb948cd39f933cd3bbb49a492

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 13, 2026

Copy link
Copy Markdown

Restore V2 agent identities on root thread resume

Why

After a cold resume, a Multi-Agent V2 root thread must still be able to
address its persisted descendants even though their runtimes are not reopened
eagerly.

What changed

  • Restore metadata for open descendant agents when resuming a V2 root thread.
  • Preserve each descendant's path, nickname, and role while leaving its runtime
    unloaded until a message targets it.
  • Reuse the spawn metadata preparation path so restored identities retain the
    same reservation and naming checks as newly spawned agents.

Testing

Added an end-to-end cold-resume test that follows up with a persisted agent by
name and verifies that the original agent thread is loaded on demand.

## Why

After a cold resume, a Multi-Agent V2 root thread must still be able to
address its persisted descendants even though their runtimes are not reopened
eagerly.

## What changed

- Restore metadata for open descendant agents when resuming a V2 root thread.
- Preserve each descendant's path, nickname, and role while leaving its runtime
  unloaded until a message targets it.
- Reuse the spawn metadata preparation path so restored identities retain the
  same reservation and naming checks as newly spawned agents.

## Testing

Added an end-to-end cold-resume test that follows up with a persisted agent by
name and verifies that the original agent thread is loaded on demand.

GitOrigin-RevId: a1663c1ae60eefadb948cd39f933cd3bbb49a492
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/a1663c1ae60eefadb948cd39f933cd3bbb49a492 branch from c0cb238 to 0882392 Compare July 13, 2026 17:25
@copyberry
copyberry Bot merged commit 0882392 into main Jul 13, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/a1663c1ae60eefadb948cd39f933cd3bbb49a492 branch July 13, 2026 17:26
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 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.

1 participant