This commit is contained in:
jif-oai
2025-12-18 14:50:41 +00:00
parent 090e5cd95e
commit 9c859b4e85
2 changed files with 18 additions and 18 deletions

View File

@@ -897,7 +897,7 @@ impl Session {
async fn new_turn_from_configuration(
&self,
agent_id: &str,
agent_id: &AgentId,
sub_id: String,
session_configuration: SessionConfiguration,
final_output_json_schema: Option<Option<Value>>,
@@ -936,7 +936,7 @@ impl Session {
per_turn_config,
model_family,
self.conversation_id,
agent_id.to_string(),
agent_id.clone(),
sub_id,
);
if let Some(final_schema) = final_output_json_schema {
@@ -1760,7 +1760,7 @@ mod handlers {
pub async fn override_turn_context(
sess: &Session,
agent_id: &str,
agent_id: &AgentId,
sub_id: String,
updates: SessionSettingsUpdate,
) {
@@ -1778,7 +1778,7 @@ mod handlers {
pub async fn user_input_or_turn(
sess: &Arc<Session>,
agent_id: &str,
agent_id: &AgentId,
sub_id: String,
op: Op,
previous_context: &mut Option<Arc<TurnContext>>,
@@ -1835,7 +1835,7 @@ mod handlers {
pub async fn run_user_shell_command(
sess: &Arc<Session>,
agent_id: &str,
agent_id: &AgentId,
sub_id: String,
command: String,
previous_context: &mut Option<Arc<TurnContext>>,
@@ -1914,7 +1914,7 @@ mod handlers {
pub async fn add_to_history(
sess: &Arc<Session>,
agent_id: &str,
agent_id: &AgentId,
config: &Arc<Config>,
text: String,
) {
@@ -1929,7 +1929,7 @@ mod handlers {
pub async fn get_history_entry_request(
sess: &Arc<Session>,
agent_id: &str,
agent_id: &AgentId,
config: &Arc<Config>,
sub_id: String,
offset: usize,
@@ -1967,7 +1967,7 @@ mod handlers {
pub async fn list_mcp_tools(
sess: &Session,
agent_id: &str,
agent_id: &AgentId,
config: &Arc<Config>,
sub_id: String,
) {
@@ -2007,7 +2007,7 @@ mod handlers {
pub async fn list_skills(
sess: &Session,
agent_id: &str,
agent_id: &AgentId,
sub_id: String,
cwds: Vec<PathBuf>,
force_reload: bool,
@@ -2105,7 +2105,7 @@ mod handlers {
pub async fn review(
sess: &Arc<Session>,
agent_id: &str,
agent_id: &AgentId,
config: &Arc<Config>,
sub_id: String,
review_request: ReviewRequest,

View File

@@ -8,14 +8,6 @@ mod user_shell;
use std::sync::Arc;
use std::time::Duration;
use async_trait::async_trait;
use tokio::select;
use tokio::sync::Notify;
use tokio_util::sync::CancellationToken;
use tokio_util::task::AbortOnDropHandle;
use tracing::trace;
use tracing::warn;
use crate::AuthManager;
use crate::codex::Session;
use crate::codex::TurnContext;
@@ -27,7 +19,15 @@ use crate::protocol::TurnAbortedEvent;
use crate::state::ActiveTurn;
use crate::state::RunningTask;
use crate::state::TaskKind;
use async_trait::async_trait;
use codex_protocol::protocol::AgentId;
use codex_protocol::user_input::UserInput;
use tokio::select;
use tokio::sync::Notify;
use tokio_util::sync::CancellationToken;
use tokio_util::task::AbortOnDropHandle;
use tracing::trace;
use tracing::warn;
pub(crate) use compact::CompactTask;
pub(crate) use ghost_snapshot::GhostSnapshotTask;