mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:22:05 +00:00
Add turn trigger metadata (#40665)
## What changed - Add an optional `turnTrigger` field to app-server `turn/start` requests and expose it in the generated protocol schemas. - Propagate non-empty trigger values to Responses request metadata as the reserved `turn_trigger` field, while preserving the original value when a request steers an active turn. - Classify turns started by queue dispatch, goal continuation, retry recovery, and realtime handoff. ## Testing - Cover HTTP and WebSocket metadata forwarding, steering behavior, reserved metadata handling, and the built-in trigger classifications. GitOrigin-RevId: c12fe2c522286db21b76081ae6154fbf6bfb3639
This commit is contained in:
1 parent
ba9567daf3
commit
538900ee76
29 files changed
+189
-11
No files matched your search
@@ -143,6 +143,9 @@ pub enum TurnInputMode {
|
||||
/// child input, Core also compares root lineage to detect ambiguity.
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct TurnStartOptions {
|
||||
/// Source classification for the caller that starts a new turn.
|
||||
/// Ignored when the submitted input steers an active turn.
|
||||
pub turn_trigger: Option<String>,
|
||||
/// Structured-output schema for a new turn. When steering, Core rejects
|
||||
/// the input if the active turn uses a different schema.
|
||||
pub final_output_json_schema: Option<Value>,
|
||||
|
||||
Reference in new issue
Block a user