mirror of
https://github.com/openai/codex.git
synced 2026-11-07 20:30:33 +00:00
## What changed Expose `AgentTurnOutcomeReporter` for hosts to install through `StartThreadOptions::thread_extension_init`. Await its callback after emitting the terminal turn event, independently of native parent notifications, so hosts can handle result delivery and retries. Track outstanding outcome handoffs and wait for them during graceful shutdown before running thread-stop hooks. Prevent new turns from starting once handoff registration closes. ## Testing Add integration coverage for completed and errored outcomes, turn lineage, queued follow-up turns, and shutdown waiting for handoffs. Extend Guardian tests to verify that strict safety stops reach the reporter while default interruptions remain silent. GitOrigin-RevId: 0d825f6208f0250969734488881f32fd1dcd7509
33 lines
1.0 KiB
Rust
33 lines
1.0 KiB
Rust
mod admission;
|
|
mod completion;
|
|
mod invocation;
|
|
mod mcp_metadata;
|
|
mod ownership;
|
|
mod session_reader;
|
|
mod spawn;
|
|
mod types;
|
|
mod usage;
|
|
|
|
pub use admission::AgentTurnAdmission;
|
|
pub use admission::AgentTurnAdmissionRequest;
|
|
pub use completion::AgentTurnOutcomeReporter;
|
|
pub use invocation::HostToolInvocationLookup;
|
|
pub(crate) use invocation::InvocationReservation;
|
|
pub use invocation::ToolInvocationContext;
|
|
pub(crate) use invocation::create;
|
|
pub(crate) use invocation::prepare;
|
|
pub(crate) use invocation::tool_invocation;
|
|
pub use mcp_metadata::AgentMcpMetadataRecipient;
|
|
pub use ownership::AgentRuntimeOwnership;
|
|
pub(crate) use ownership::AgentRuntimeServices;
|
|
pub use session_reader::AgentRef;
|
|
pub use session_reader::AgentSessionReader;
|
|
pub use types::HostThreadSpawnReservation;
|
|
pub use types::InheritedSessionId;
|
|
pub use types::PreparedChildContext;
|
|
pub(crate) use types::PreparedChildInheritance;
|
|
pub use types::RestrictRootCapabilities;
|
|
pub use usage::AgentUsageAccounting;
|
|
pub use usage::AgentUsageReport;
|
|
pub use usage::UsageAccountingDecision;
|