Phase 2 Part 2: Fix Rust compilation errors after rename
Fixed all compilation errors resulting from the crate rename: - Fixed FunctionCallOutputPayload::from() double reference issue in response_processing.rs:61 - Removed unnecessary & as call_tool_result was already a reference - Fixed spawn_task method call in llmx.rs by adding & reference to Arc<Session> - Fixed Arc type inference by adding explicit type annotations - Fixed tokio::join! type inference by separating future creation - Updated all remaining crate::codex imports to crate::llmx across: - tools/orchestrator.rs - tools/handlers/shell.rs - apply_patch.rs - compact.rs - unified_exec/mod.rs - tools/context.rs - tools/sandboxing.rs - tools/events.rs Successfully verified with cargo check --bin llmx (31.50s compile time). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -31,8 +31,8 @@ use rand::Rng;
|
||||
use rand::rng;
|
||||
use tokio::sync::Mutex;
|
||||
|
||||
use crate::codex::Session;
|
||||
use crate::codex::TurnContext;
|
||||
use crate::llmx::Session;
|
||||
use crate::llmx::TurnContext;
|
||||
|
||||
mod errors;
|
||||
mod session;
|
||||
@@ -161,9 +161,9 @@ pub(crate) fn truncate_output_to_tokens(
|
||||
#[cfg(unix)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::codex::Session;
|
||||
use crate::codex::TurnContext;
|
||||
use crate::codex::make_session_and_context;
|
||||
use crate::llmx::Session;
|
||||
use crate::llmx::TurnContext;
|
||||
use crate::llmx::make_session_and_context;
|
||||
use crate::protocol::AskForApproval;
|
||||
use crate::protocol::SandboxPolicy;
|
||||
use crate::unified_exec::ExecCommandRequest;
|
||||
|
||||
Reference in New Issue
Block a user