diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server.rs index 68b6472af..84b23aba9 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server.rs @@ -2079,7 +2079,6 @@ impl CodexAppServerConnection { snapshot, llm, request, - None, on_agent_message_delta, None, None, @@ -2088,6 +2087,27 @@ impl CodexAppServerConnection { } async fn run_turn_with_direct_observer( + &self, + snapshot: &AgentRuntimeProviderRequestSnapshot, + llm: &GameCreatorLlmConfig, + request: LlmRunRequest, + mut on_agent_message_delta: Option<&mut (dyn FnMut(&platform_llm::LlmStreamDelta) + Send)>, + mut direct_observer: Option<&mut (dyn FnMut(DirectCodexTurnObservation) + Send)>, + mut audit: Option<&mut DirectCodexTurnAudit>, + ) -> Result { + self.run_turn_with_direct_observer_and_history( + snapshot, + llm, + request, + None, + on_agent_message_delta, + direct_observer, + audit, + ) + .await + } + + async fn run_turn_with_direct_observer_and_history( &self, snapshot: &AgentRuntimeProviderRequestSnapshot, llm: &GameCreatorLlmConfig, @@ -3179,7 +3199,7 @@ pub(crate) async fn direct_game_creator_codex_chat_at_with_optional_observer( .with_request_timeout_ms(config.llm.request_timeout_ms) .with_max_output_tokens(16_000); connection - .run_turn_with_direct_observer( + .run_turn_with_direct_observer_and_history( &snapshot, &config.llm, request, @@ -4652,7 +4672,6 @@ while IFS= read -r line; do :; done &test_snapshot(), &llm, tool_request(), - None, Some(&mut on_delta), Some(&mut observer), None,