mirror of
https://github.com/openai/codex.git
synced 2026-11-20 22:40:37 +00:00
Pass eligible connector results through to ChatGPT Responses (#62392)
## What changed Add the off-by-default `features.connector_tool_result_passthrough` flag. For direct ChatGPT Apps calls, capture eligible text and structured content from the original MCP result before tool output processing. Attach the captured body to the matching executed-tool record on follow-up HTTP Responses requests to the ChatGPT Codex endpoint when the request uses the same authenticated account and turn. Bound captured bodies in memory for the originating turn. Enabling passthrough alone scopes executed-tool metadata to calls with a captured result ID. ## Testing Add coverage for same-turn HTTP delivery, omission on later turns or after an account change, and omission of shell-call metadata on HTTP and WebSocket requests when only passthrough is enabled. GitOrigin-RevId: 410c81559bfc15022b896cf006cb631f3fd9454e
This commit is contained in:
@@ -149,6 +149,8 @@ pub enum Feature {
|
||||
UntrustedAsToolOutput,
|
||||
/// Record model-attempted tool calls in internal Responses metadata.
|
||||
ExecutedToolCallMetadata,
|
||||
/// Record executed tool calls and attach eligible connector results to their metadata.
|
||||
ConnectorToolResultPassthrough,
|
||||
/// Enable JavaScript code mode backed by the standalone host process.
|
||||
CodeMode,
|
||||
/// Expose ranked tool discovery inside JavaScript code mode.
|
||||
@@ -1327,6 +1329,12 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
stage: Stage::UnderDevelopment,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::ConnectorToolResultPassthrough,
|
||||
key: "connector_tool_result_passthrough",
|
||||
stage: Stage::UnderDevelopment,
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::StableEnvironmentTools,
|
||||
key: "stable_environment_tools",
|
||||
|
||||
Reference in New Issue
Block a user