mirror of
https://github.com/openai/codex.git
synced 2026-10-27 18:48:37 +00:00
## What changed - Remove the step-scoped `ExtensionData` argument from context, turn-input, and tool contributors. - Pass the host's optional `McpResourceClient` through `ThreadStartInput` so extensions can retain session capabilities explicitly. - Keep the MCP resource client in skills-owned session state for catalog loading and skill tools. GitOrigin-RevId: bafa77bcd998aff408d6a396c5fd9ac268c4cce4
21 lines
719 B
Rust
21 lines
719 B
Rust
use codex_protocol::ThreadId;
|
|
|
|
use crate::ExtensionData;
|
|
|
|
/// Host context available while extensions contribute turn-scoped context fragments.
|
|
#[derive(Clone, Copy)]
|
|
pub struct TurnContextContributionInput<'a> {
|
|
/// Stable host-owned thread identifier.
|
|
pub thread_id: ThreadId,
|
|
/// Stable host-owned turn identifier.
|
|
pub turn_id: &'a str,
|
|
/// Store scoped to the host session runtime.
|
|
pub session_store: &'a ExtensionData,
|
|
/// Store scoped to this thread runtime.
|
|
pub thread_store: &'a ExtensionData,
|
|
/// Store scoped to this turn.
|
|
pub turn_store: &'a ExtensionData,
|
|
/// Effective model context window for this turn, when known.
|
|
pub model_context_window: Option<i64>,
|
|
}
|