mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Reload Multi-Agent V2 children through their parent (#40477)
## Why Multi-Agent V2 children are owned by their parent at runtime. Resuming an unloaded child directly could rebuild it from caller-provided settings instead of the parent's current authority. ## What changed - Route child reloads through their loaded immediate parent and reject direct cold resume when that parent is unavailable. - Preserve the child's recorded model, provider, reasoning effort, and role while inheriting the parent's execution policy and MCP extensions. - Validate cached environments against the parent, intersect local permission profiles, and reject stale remote or workspace-root configurations. - Keep paginated cold-resume token usage attribution when attaching to the reloaded child. ## Testing Add coverage for owner validation, nested-parent reloads, permission and environment changes, role instruction restoration, paginated usage replay, and app-server child resume behavior. GitOrigin-RevId: 84014762bcdb57f94fc23974c9c1af55dc1babf1
This commit is contained in:
1 parent
3a211471d2
commit
d21794d6ba
15 files changed
+1074
-143
No files matched your search
@@ -36,6 +36,8 @@ type PendingInterruptQueue = Vec<ConnectionRequestId>;
|
||||
pub(crate) struct PendingThreadResumeRequest {
|
||||
pub(crate) request_id: ConnectionRequestId,
|
||||
pub(crate) history_items: Vec<RolloutItem>,
|
||||
/// Usage attribution already resolved while cold-loading a paginated child.
|
||||
pub(crate) cold_resume_token_usage_turn_id: Option<String>,
|
||||
pub(crate) config_snapshot: ThreadConfigSnapshot,
|
||||
pub(crate) instruction_sources: Vec<LegacyAppPathString>,
|
||||
pub(crate) thread_summary: codex_app_server_protocol::Thread,
|
||||
|
||||
Reference in new issue
Block a user