Support standalone function outputs in turn routing (#40991)

## What changed

- Allow `start_or_steer_turn` to accept named `function_call_output` items without a `call_id`, starting a turn when idle or steering the active turn.
- Preserve standalone outputs as pending input, assign response item IDs, and record them in conversation history without treating them as user prompts.

## Testing

- Cover starting a turn with a standalone output and steering an active turn with one.
- Verify passive response items do not signal pending steering activity.

GitOrigin-RevId: e32b292106b3c5a5f03577b8ebf67d2d7dee4e5d
This commit is contained in:
rka-oai authored and copyberry committed 2026-08-26 22:48:37 +00:00
1 parent 6e008417bb
commit b9c4b9a0cf
9 files changed
+178 -61

No files matched your search

+2 -2
View File
@@ -341,8 +341,8 @@ impl CodexThread {
/// Submits turn input without requiring the caller to inspect thread state.
///
/// The result describes whether Core started a turn, steered an active
/// turn, or declined it without recording or enqueueing the input. Only
/// user input is accepted.
/// turn, or declined it without recording or enqueueing the input.
/// User input and named standalone function-call outputs are accepted.
pub async fn start_or_steer_turn(
&self,
request: TurnInputRequest,