diff --git a/llmx-rs/Cargo.lock b/llmx-rs/Cargo.lock index acf396b0..97243957 100644 --- a/llmx-rs/Cargo.lock +++ b/llmx-rs/Cargo.lock @@ -178,7 +178,7 @@ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" [[package]] name = "app_test_support" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "assert_cmd", @@ -945,7 +945,7 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "core_test_support" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "assert_cmd", @@ -1192,7 +1192,7 @@ dependencies = [ [[package]] name = "deadpool-runtime" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "092966b41edc516079bdf31ec78a2e0588d1d0c08f78b91d8307215928642b2b" @@ -2501,7 +2501,7 @@ dependencies = [ [[package]] name = "inout" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" dependencies = [ @@ -2822,7 +2822,7 @@ checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956" [[package]] name = "llmx-ansi-escape" -version = "0.1.4" +version = "0.1.5" dependencies = [ "ansi-to-tui", "ratatui", @@ -2831,7 +2831,7 @@ dependencies = [ [[package]] name = "llmx-app-server" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "app_test_support", @@ -2866,7 +2866,7 @@ dependencies = [ [[package]] name = "llmx-app-server-protocol" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "clap", @@ -2884,7 +2884,7 @@ dependencies = [ [[package]] name = "llmx-apply-patch" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "assert_cmd", @@ -2899,7 +2899,7 @@ dependencies = [ [[package]] name = "llmx-arg0" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "dotenvy", @@ -2912,7 +2912,7 @@ dependencies = [ [[package]] name = "llmx-async-utils" -version = "0.1.4" +version = "0.1.5" dependencies = [ "async-trait", "pretty_assertions", @@ -2936,7 +2936,7 @@ dependencies = [ [[package]] name = "llmx-backend-openapi-models" -version = "0.1.4" +version = "0.1.5" dependencies = [ "serde", "serde_json", @@ -2945,7 +2945,7 @@ dependencies = [ [[package]] name = "llmx-chatgpt" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "clap", @@ -2960,7 +2960,7 @@ dependencies = [ [[package]] name = "llmx-cli" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "assert_cmd", @@ -3000,7 +3000,7 @@ dependencies = [ [[package]] name = "llmx-cloud-tasks" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "async-trait", @@ -3026,7 +3026,7 @@ dependencies = [ [[package]] name = "llmx-cloud-tasks-client" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "async-trait", @@ -3041,7 +3041,7 @@ dependencies = [ [[package]] name = "llmx-common" -version = "0.1.4" +version = "0.1.5" dependencies = [ "clap", "llmx-app-server-protocol", @@ -3053,7 +3053,7 @@ dependencies = [ [[package]] name = "llmx-core" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "askama", @@ -3134,7 +3134,7 @@ dependencies = [ [[package]] name = "llmx-exec" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "assert_cmd", @@ -3167,7 +3167,7 @@ dependencies = [ [[package]] name = "llmx-execpolicy" -version = "0.1.4" +version = "0.1.5" dependencies = [ "allocative", "anyhow", @@ -3187,7 +3187,7 @@ dependencies = [ [[package]] name = "llmx-feedback" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "llmx-protocol", @@ -3198,7 +3198,7 @@ dependencies = [ [[package]] name = "llmx-file-search" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "clap", @@ -3211,7 +3211,7 @@ dependencies = [ [[package]] name = "llmx-git" -version = "0.1.4" +version = "0.1.5" dependencies = [ "assert_matches", "once_cell", @@ -3227,7 +3227,7 @@ dependencies = [ [[package]] name = "llmx-keyring-store" -version = "0.1.4" +version = "0.1.5" dependencies = [ "keyring", "tracing", @@ -3235,7 +3235,7 @@ dependencies = [ [[package]] name = "llmx-linux-sandbox" -version = "0.1.4" +version = "0.1.5" dependencies = [ "clap", "landlock", @@ -3248,7 +3248,7 @@ dependencies = [ [[package]] name = "llmx-login" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "base64", @@ -3272,7 +3272,7 @@ dependencies = [ [[package]] name = "llmx-mcp-server" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "assert_cmd", @@ -3299,7 +3299,7 @@ dependencies = [ [[package]] name = "llmx-ollama" -version = "0.1.4" +version = "0.1.5" dependencies = [ "assert_matches", "async-stream", @@ -3315,7 +3315,7 @@ dependencies = [ [[package]] name = "llmx-otel" -version = "0.1.4" +version = "0.1.5" dependencies = [ "chrono", "eventsource-stream", @@ -3336,14 +3336,14 @@ dependencies = [ [[package]] name = "llmx-process-hardening" -version = "0.1.4" +version = "0.1.5" dependencies = [ "libc", ] [[package]] name = "llmx-protocol" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "base64", @@ -3369,7 +3369,7 @@ dependencies = [ [[package]] name = "llmx-responses-api-proxy" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "clap", @@ -3385,7 +3385,7 @@ dependencies = [ [[package]] name = "llmx-rmcp-client" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "axum", @@ -3414,7 +3414,7 @@ dependencies = [ [[package]] name = "llmx-stdio-to-uds" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "assert_cmd", @@ -3425,7 +3425,7 @@ dependencies = [ [[package]] name = "llmx-tui" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "arboard", @@ -3490,7 +3490,7 @@ dependencies = [ [[package]] name = "llmx-utils-cache" -version = "0.1.4" +version = "0.1.5" dependencies = [ "lru", "sha1", @@ -3499,7 +3499,7 @@ dependencies = [ [[package]] name = "llmx-utils-image" -version = "0.1.4" +version = "0.1.5" dependencies = [ "base64", "image", @@ -3511,7 +3511,7 @@ dependencies = [ [[package]] name = "llmx-utils-json-to-toml" -version = "0.1.4" +version = "0.1.5" dependencies = [ "pretty_assertions", "serde_json", @@ -3520,7 +3520,7 @@ dependencies = [ [[package]] name = "llmx-utils-pty" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "portable-pty", @@ -3529,7 +3529,7 @@ dependencies = [ [[package]] name = "llmx-utils-readiness" -version = "0.1.4" +version = "0.1.5" dependencies = [ "assert_matches", "async-trait", @@ -3540,11 +3540,11 @@ dependencies = [ [[package]] name = "llmx-utils-string" -version = "0.1.4" +version = "0.1.5" [[package]] name = "llmx-utils-tokenizer" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "pretty_assertions", @@ -3655,7 +3655,7 @@ checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" [[package]] name = "mcp-types" -version = "0.1.4" +version = "0.1.5" dependencies = [ "schemars 0.8.22", "serde", @@ -3665,7 +3665,7 @@ dependencies = [ [[package]] name = "mcp_test_support" -version = "0.1.4" +version = "0.1.5" dependencies = [ "anyhow", "assert_cmd", @@ -3942,7 +3942,7 @@ checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" [[package]] name = "num-integer" -version = "0.1.46" +version = "0.1.56" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" dependencies = [ @@ -3951,7 +3951,7 @@ dependencies = [ [[package]] name = "num-iter" -version = "0.1.45" +version = "0.1.55" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" dependencies = [ @@ -4520,7 +4520,7 @@ dependencies = [ [[package]] name = "potential_utf" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" dependencies = [ @@ -6580,7 +6580,7 @@ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" -version = "0.1.41" +version = "0.1.51" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" dependencies = [ diff --git a/llmx-rs/Cargo.toml b/llmx-rs/Cargo.toml index 380cdd91..6989c819 100644 --- a/llmx-rs/Cargo.toml +++ b/llmx-rs/Cargo.toml @@ -43,7 +43,7 @@ members = [ resolver = "2" [workspace.package] -version = "0.1.4" +version = "0.1.5" # Track the edition for all workspace crates in one place. Individual # crates can still override this value, but keeping it here means new # crates created with `cargo new -w ...` automatically inherit the 2024 @@ -191,7 +191,7 @@ tokio-util = "0.7.16" toml = "0.9.5" toml_edit = "0.23.4" tonic = "0.13.1" -tracing = "0.1.41" +tracing = "0.1.51" tracing-appender = "0.2.3" tracing-subscriber = "0.3.20" tracing-test = "0.2.5" diff --git a/llmx-rs/app-server/tests/common/mcp_process.rs b/llmx-rs/app-server/tests/common/mcp_process.rs index 860fbc08..f851e606 100644 --- a/llmx-rs/app-server/tests/common/mcp_process.rs +++ b/llmx-rs/app-server/tests/common/mcp_process.rs @@ -138,7 +138,7 @@ impl McpProcess { client_info: ClientInfo { name: "llmx-app-server-tests".to_string(), title: None, - version: "0.1.4".to_string(), + version: "0.1.5".to_string(), }, })?); let req_id = self.send_request("initialize", params).await?; diff --git a/llmx-rs/app-server/tests/suite/user_agent.rs b/llmx-rs/app-server/tests/suite/user_agent.rs index b9ca8783..2ffbc994 100644 --- a/llmx-rs/app-server/tests/suite/user_agent.rs +++ b/llmx-rs/app-server/tests/suite/user_agent.rs @@ -26,7 +26,7 @@ async fn get_user_agent_returns_current_llmx_user_agent() -> Result<()> { let os_info = os_info::get(); let user_agent = format!( - "llmx_cli_rs/0.1.4 ({} {}; {}) {} (llmx-app-server-tests; 0.1.4)", + "llmx_cli_rs/0.1.5 ({} {}; {}) {} (llmx-app-server-tests; 0.1.5)", os_info.os_type(), os_info.version(), os_info.architecture().unwrap_or("unknown"), diff --git a/llmx-rs/core/src/chat_completions.rs b/llmx-rs/core/src/chat_completions.rs index d5d7a947..139b0d24 100644 --- a/llmx-rs/core/src/chat_completions.rs +++ b/llmx-rs/core/src/chat_completions.rs @@ -161,10 +161,65 @@ pub(crate) async fn stream_chat_completions( // aggregated assistant message was recorded alongside an earlier partial). let mut last_assistant_text: Option = None; - // Track call_ids of skipped function calls so we can also skip their outputs - let mut skipped_call_ids: std::collections::HashSet = std::collections::HashSet::new(); + // Build a map of which call_ids have outputs + // We'll use this to ensure we never send a FunctionCall without its corresponding output + let mut call_ids_with_outputs: std::collections::HashSet = std::collections::HashSet::new(); + + // First pass: collect all call_ids that have outputs + for item in input.iter() { + if let ResponseItem::FunctionCallOutput { call_id, .. } = item { + call_ids_with_outputs.insert(call_id.clone()); + } + } + + debug!("=== Chat Completions Request Debug ==="); + debug!("Input items count: {}", input.len()); + debug!("Call IDs with outputs: {:?}", call_ids_with_outputs); + + // Second pass: find the first FunctionCall that doesn't have an output + let mut cutoff_at_idx: Option = None; + for (idx, item) in input.iter().enumerate() { + if let ResponseItem::FunctionCall { call_id, name, .. } = item { + if !call_ids_with_outputs.contains(call_id) { + debug!("Found unanswered function call '{}' (call_id: {}) at index {}", name, call_id, idx); + cutoff_at_idx = Some(idx); + break; + } + } + } + + if let Some(cutoff) = cutoff_at_idx { + debug!("Cutting off at index {} to avoid orphaned tool calls", cutoff); + } else { + debug!("No unanswered function calls found, processing all items"); + } + + // Track whether the MOST RECENT FunctionCall with each call_id was skipped + // This allows the same call_id to be retried - we only skip outputs for the specific skipped calls + let mut call_id_skip_state: std::collections::HashMap = std::collections::HashMap::new(); for (idx, item) in input.iter().enumerate() { + // Stop processing if we've reached an unanswered function call + if let Some(cutoff) = cutoff_at_idx { + if idx >= cutoff { + debug!("Stopping at index {} due to unanswered function call", idx); + break; + } + } + + debug!("Processing item {} of type: {}", idx, match item { + ResponseItem::Message { role, .. } => format!("Message(role={})", role), + ResponseItem::FunctionCall { name, call_id, .. } => format!("FunctionCall(name={}, call_id={})", name, call_id), + ResponseItem::FunctionCallOutput { call_id, .. } => format!("FunctionCallOutput(call_id={})", call_id), + ResponseItem::LocalShellCall { .. } => "LocalShellCall".to_string(), + ResponseItem::CustomToolCall { .. } => "CustomToolCall".to_string(), + ResponseItem::CustomToolCallOutput { .. } => "CustomToolCallOutput".to_string(), + ResponseItem::Reasoning { .. } => "Reasoning".to_string(), + ResponseItem::WebSearchCall { .. } => "WebSearchCall".to_string(), + ResponseItem::GhostSnapshot { .. } => "GhostSnapshot".to_string(), + ResponseItem::Other => "Other".to_string(), + }); + match item { ResponseItem::Message { role, content, .. } => { // Build content either as a plain string (typical for assistant text) @@ -234,11 +289,14 @@ pub(crate) async fn stream_chat_completions( // If invalid, skip this function call to avoid API errors if serde_json::from_str::(arguments).is_err() { debug!("Skipping malformed function call with invalid JSON arguments: {}", arguments); - // Track this call_id so we can also skip its corresponding output - skipped_call_ids.insert(call_id.clone()); + // Mark this call_id's most recent state as skipped + call_id_skip_state.insert(call_id.clone(), true); continue; } + // Mark this call_id's most recent state as NOT skipped (valid call) + call_id_skip_state.insert(call_id.clone(), false); + let mut msg = json!({ "role": "assistant", "content": null, @@ -283,9 +341,9 @@ pub(crate) async fn stream_chat_completions( messages.push(msg); } ResponseItem::FunctionCallOutput { call_id, output } => { - // Skip outputs for function calls that were skipped due to malformed arguments - if skipped_call_ids.contains(call_id) { - debug!("Skipping function call output for skipped call_id: {}", call_id); + // Skip outputs only if the MOST RECENT FunctionCall with this call_id was skipped + if call_id_skip_state.get(call_id) == Some(&true) { + debug!("Skipping function call output for most recent skipped call_id: {}", call_id); continue; } @@ -354,14 +412,23 @@ pub(crate) async fn stream_chat_completions( } } + debug!("Built {} messages for API request", messages.len()); + debug!("=== End Chat Completions Request Debug ==="); + let tools_json = create_tools_json_for_chat_completions_api(&prompt.tools)?; - let payload = json!({ + let mut payload = json!({ "model": model_family.slug, "messages": messages, "stream": true, "tools": tools_json, }); + // Add max_tokens - required by Anthropic Messages API + // Use a sensible default of 8192 if not configured + if let Some(obj) = payload.as_object_mut() { + obj.insert("max_tokens".to_string(), json!(8192)); + } + debug!( "POST to {}: {}", provider.get_full_url(&None), diff --git a/llmx-rs/core/src/tools/spec.rs b/llmx-rs/core/src/tools/spec.rs index 71761b9a..05876249 100644 --- a/llmx-rs/core/src/tools/spec.rs +++ b/llmx-rs/core/src/tools/spec.rs @@ -693,7 +693,7 @@ pub(crate) fn create_tools_json_for_chat_completions_api( // We start with the JSON for the Responses API and than rewrite it to match // the chat completions tool call format. let responses_api_tools_json = create_tools_json_for_responses_api(tools)?; - let tools_json = responses_api_tools_json + let mut tools_json = responses_api_tools_json .into_iter() .filter_map(|mut tool| { if tool.get("type") != Some(&serde_json::Value::String("function".to_string())) { @@ -712,6 +712,14 @@ pub(crate) fn create_tools_json_for_chat_completions_api( } }) .collect::>(); + + // Add cache_control to the last tool to enable Anthropic prompt caching + if let Some(last_tool) = tools_json.last_mut() { + if let Some(obj) = last_tool.as_object_mut() { + obj.insert("cache_control".to_string(), json!({"type": "ephemeral"})); + } + } + Ok(tools_json) } diff --git a/llmx-rs/mcp-server/tests/common/mcp_process.rs b/llmx-rs/mcp-server/tests/common/mcp_process.rs index e46d2f2e..4dc8f220 100644 --- a/llmx-rs/mcp-server/tests/common/mcp_process.rs +++ b/llmx-rs/mcp-server/tests/common/mcp_process.rs @@ -144,7 +144,7 @@ impl McpProcess { let initialized = self.read_jsonrpc_message().await?; let os_info = os_info::get(); let user_agent = format!( - "llmx_cli_rs/0.1.4 ({} {}; {}) {} (elicitation test; 0.0.0)", + "llmx_cli_rs/0.1.5 ({} {}; {}) {} (elicitation test; 0.0.0)", os_info.os_type(), os_info.version(), os_info.architecture().unwrap_or("unknown"), @@ -163,7 +163,7 @@ impl McpProcess { "serverInfo": { "name": "llmx-mcp-server", "title": "LLMX", - "version": "0.1.4", + "version": "0.1.5", "user_agent": user_agent }, "protocolVersion": mcp_types::MCP_SCHEMA_VERSION diff --git a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_includes_monthly_limit.snap b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_includes_monthly_limit.snap index e1921e81..8c3c6cea 100644 --- a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_includes_monthly_limit.snap +++ b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_includes_monthly_limit.snap @@ -5,7 +5,7 @@ expression: sanitized /status ╭───────────────────────────────────────────────────────────────────────────╮ -│ >_ LLMX (v0.1.4) │ +│ >_ LLMX (v0.1.5) │ │ │ │ Visit https://chatgpt.com/llmx/settings/usage for up-to-date │ │ information on rate limits and credits │ diff --git a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_includes_reasoning_details.snap b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_includes_reasoning_details.snap index 7e248db7..b0bfbcac 100644 --- a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_includes_reasoning_details.snap +++ b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_includes_reasoning_details.snap @@ -5,7 +5,7 @@ expression: sanitized /status ╭─────────────────────────────────────────────────────────────────╮ -│ >_ LLMX (v0.1.4) │ +│ >_ LLMX (v0.1.5) │ │ │ │ Visit https://chatgpt.com/llmx/settings/usage for up-to-date │ │ information on rate limits and credits │ diff --git a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_empty_limits_message.snap b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_empty_limits_message.snap index e36d886e..89760560 100644 --- a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_empty_limits_message.snap +++ b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_empty_limits_message.snap @@ -5,7 +5,7 @@ expression: sanitized /status ╭──────────────────────────────────────────────────────────────╮ -│ >_ LLMX (v0.1.4) │ +│ >_ LLMX (v0.1.5) │ │ │ │ Visit https://chatgpt.com/llmx/settings/usage for up-to-date │ │ information on rate limits and credits │ diff --git a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_missing_limits_message.snap b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_missing_limits_message.snap index e36d886e..89760560 100644 --- a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_missing_limits_message.snap +++ b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_missing_limits_message.snap @@ -5,7 +5,7 @@ expression: sanitized /status ╭──────────────────────────────────────────────────────────────╮ -│ >_ LLMX (v0.1.4) │ +│ >_ LLMX (v0.1.5) │ │ │ │ Visit https://chatgpt.com/llmx/settings/usage for up-to-date │ │ information on rate limits and credits │ diff --git a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_stale_limits_message.snap b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_stale_limits_message.snap index a872bc05..78aa0273 100644 --- a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_stale_limits_message.snap +++ b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_shows_stale_limits_message.snap @@ -5,7 +5,7 @@ expression: sanitized /status ╭───────────────────────────────────────────────────────────────────╮ -│ >_ LLMX (v0.1.4) │ +│ >_ LLMX (v0.1.5) │ │ │ │ Visit https://chatgpt.com/llmx/settings/usage for up-to-date │ │ information on rate limits and credits │ diff --git a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_truncates_in_narrow_terminal.snap b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_truncates_in_narrow_terminal.snap index 264e0b3d..392c5752 100644 --- a/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_truncates_in_narrow_terminal.snap +++ b/llmx-rs/tui/src/status/snapshots/llmx_tui__status__tests__status_snapshot_truncates_in_narrow_terminal.snap @@ -5,7 +5,7 @@ expression: sanitized /status ╭────────────────────────────────────────────╮ -│ >_ LLMX (v0.1.4) │ +│ >_ LLMX (v0.1.5) │ │ │ │ Visit https://chatgpt.com/llmx/settings/ │ │ usage for up-to-date │ diff --git a/llmx-rs/tui/tests/fixtures/binary-size-log.jsonl b/llmx-rs/tui/tests/fixtures/binary-size-log.jsonl index 2e6bdd40..6d3c806b 100644 --- a/llmx-rs/tui/tests/fixtures/binary-size-log.jsonl +++ b/llmx-rs/tui/tests/fixtures/binary-size-log.jsonl @@ -17958,7 +17958,7 @@ {"ts":"2025-08-09T16:07:21.551Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_output_delta","call_id":"call_7xYZeN0TdkGDryUy2S9zPVtI","stream":"stdout","chunk":"Ci0tLSB0dWkvQ2FyZ28udG9tbAo="}}} {"ts":"2025-08-09T16:07:21.555Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_output_delta","call_id":"call_7xYZeN0TdkGDryUy2S9zPVtI","stream":"stdout","chunk":"W3BhY2thZ2VdCmVkaXRpb24gPSAiMjAyNCIKbmFtZSA9ICJjb2RleC10dWkiCnZlcnNpb24gPSB7IHdvcmtzcGFjZSA9IHRydWUgfQoKW1tiaW5dXQpuYW1lID0gImNvZGV4LXR1aSIKcGF0aCA9ICJzcmMvbWFpbi5ycyIKCltsaWJdCm5hbWUgPSAiY29kZXhfdHVpIgp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xvZyJdIH0KdHJhY2luZy1hcHBlbmRlciA9ICIwLjIuMyIKdHJhY2luZy1zdWJzY3JpYmVyID0geyB2ZXJzaW9uID0gIjAuMy4xOSIsIGZlYXR1cmVzID0gWyJlbnYtZmlsdGVyIl0gfQp0dWktaW5wdXQgPSAiMC4xNC4wIgp0dWktbWFya2Rvd24gPSAiMC4zLjMiCnVuaWNvZGUtc2VnbWVudGF0aW9uID0gIjEuMTIuMCIKdW5pY29kZS13aWR0aCA9ICIwLjEiCnV1aWQgPSAiMSIKCgpbZGV2LWRlcGVuZGVuY2llc10KY2hyb25vID0geyB2ZXJzaW9uID0gIjAuNCIsIGZlYXR1cmVzID0gWyJzZXJkZSJdIH0KaW5zdGEgPSAiMS40My4xIgpwcmV0dHlfYXNzZXJ0aW9ucyA9ICIxIgpyYW5kID0gIjAuOCIKdnQxMDAgPSAiMC4xNi4yIgo="}}} {"ts":"2025-08-09T16:07:21.555Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_output_delta","call_id":"call_7xYZeN0TdkGDryUy2S9zPVtI","stream":"stdout","chunk":"Cg=="}}} -{"ts":"2025-08-09T16:07:21.557Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_end","call_id":"call_7xYZeN0TdkGDryUy2S9zPVtI","stdout":"--- ansi-escape/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-ansi-escape\"\nversion = { workspace = true }\n\n[lib]\nname = \"codex_ansi_escape\"\npath = \"src/lib.rs\"\n\n[dependencies]\nansi-to-tui = \"7.0.0\"\nratatui = { version = \"0.29.0\", features = [\n \"unstable-rendered-line-info\",\n \"unstable-widget-ref\",\n] }\ntracing = { version = \"0.1.41\", features = [\"log\"] }\n\n--- apply-patch/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-apply-patch\"\nversion = { workspace = true }\n\n[lib]\nname = \"codex_apply_patch\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nsimilar = \"2.7.0\"\nthiserror = \"2.0.12\"\ntree-sitter = \"0.25.8\"\ntree-sitter-bash = \"0.25.0\"\n\n[dev-dependencies]\npretty_assertions = \"1.4.1\"\ntempfile = \"3.13.0\"\n\n--- arg0/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-arg0\"\nversion = { workspace = true }\n\n[lib]\nname = \"codex_arg0\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\ncodex-apply-patch = { path = \"../apply-patch\" }\ncodex-core = { path = \"../core\" }\ncodex-linux-sandbox = { path = \"../linux-sandbox\" }\ndotenvy = \"0.15.7\"\ntokio = { version = \"1\", features = [\"rt-multi-thread\"] }\n\n--- cli/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-cli\"\nversion = { workspace = true }\n\n[[bin]]\nname = \"codex\"\npath = \"src/main.rs\"\n\n[lib]\nname = \"codex_cli\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nclap = { version = \"4\", features = [\"derive\"] }\nclap_complete = \"4\"\ncodex-arg0 = { path = \"../arg0\" }\ncodex-chatgpt = { path = \"../chatgpt\" }\ncodex-common = { path = \"../common\", features = [\"cli\"] }\ncodex-core = { path = \"../core\" }\ncodex-exec = { path = \"../exec\" }\ncodex-login = { path = \"../login\" }\ncodex-mcp-server = { path = \"../mcp-server\" }\ncodex-tui = { path = \"../tui\" }\nserde_json = \"1\"\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntracing = \"0.1.41\"\ntracing-subscriber = \"0.3.19\"\n\n--- common/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-common\"\nversion = { workspace = true }\n\n[lints]\nworkspace = true\n\n[dependencies]\nclap = { version = \"4\", features = [\"derive\", \"wrap_help\"], optional = true }\ncodex-core = { path = \"../core\" }\nserde = { version = \"1\", optional = true }\ntoml = { version = \"0.9\", optional = true }\n\n[features]\n# Separate feature so that `clap` is not a mandatory dependency.\ncli = [\"clap\", \"serde\", \"toml\"]\nelapsed = []\nsandbox_summary = []\n\n--- core/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-core\"\nversion = { workspace = true }\n\n[lib]\nname = \"codex_core\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nasync-channel = \"2.3.1\"\nbase64 = \"0.22\"\nbytes = \"1.10.1\"\nchrono = { version = \"0.4\", features = [\"serde\"] }\ncodex-apply-patch = { path = \"../apply-patch\" }\ncodex-login = { path = \"../login\" }\ncodex-mcp-client = { path = \"../mcp-client\" }\ndirs = \"6\"\nenv-flags = \"0.1.1\"\neventsource-stream = \"0.2.3\"\nfs2 = \"0.4.3\"\nfutures = \"0.3\"\nlibc = \"0.2.174\"\nmcp-types = { path = \"../mcp-types\" }\nmime_guess = \"2.0\"\nrand = \"0.9\"\nreqwest = { version = \"0.12\", features = [\"json\", \"stream\"] }\nserde = { version = \"1\", features = [\"derive\"] }\nserde_json = \"1\"\nserde_bytes = \"0.11\"\nsha1 = \"0.10.6\"\nshlex = \"1.3.0\"\nsimilar = \"2.7.0\"\nstrum_macros = \"0.27.2\"\ntempfile = \"3\"\nthiserror = \"2.0.12\"\ntime = { version = \"0.3\", features = [\"formatting\", \"local-offset\", \"macros\"] }\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntokio-util = \"0.7.14\"\ntoml = \"0.9.4\"\ntoml_edit = \"0.23.3\"\ntracing = { version = \"0.1.41\", features = [\"log\"] }\ntree-sitter = \"0.25.8\"\ntree-sitter-bash = \"0.25.0\"\nuuid = { version = \"1\", features = [\"serde\", \"v4\"] }\nwhoami = \"1.6.0\"\nwildmatch = \"2.4.0\"\n\n\n[target.'cfg(target_os = \"linux\")'.dependencies]\nlandlock = \"0.4.1\"\nseccompiler = \"0.5.0\"\n\n# Build OpenSSL from source for musl builds.\n[target.x86_64-unknown-linux-musl.dependencies]\nopenssl-sys = { version = \"*\", features = [\"vendored\"] }\n\n# Build OpenSSL from source for musl builds.\n[target.aarch64-unknown-linux-musl.dependencies]\nopenssl-sys = { version = \"*\", features = [\"vendored\"] }\n\n[dev-dependencies]\nassert_cmd = \"2\"\ncore_test_support = { path = \"tests/common\" }\nmaplit = \"1.0.2\"\npredicates = \"3\"\npretty_assertions = \"1.4.1\"\ntempfile = \"3\"\ntokio-test = \"0.4\"\nwalkdir = \"2.5.0\"\nwiremock = \"0.6\"\n\n--- exec/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-exec\"\nversion = { workspace = true }\n\n[[bin]]\nname = \"codex-exec\"\npath = \"src/main.rs\"\n\n[lib]\nname = \"codex_exec\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nchrono = \"0.4.40\"\nclap = { version = \"4\", features = [\"derive\"] }\ncodex-arg0 = { path = \"../arg0\" }\ncodex-common = { path = \"../common\", features = [\n \"cli\",\n \"elapsed\",\n \"sandbox_summary\",\n] }\ncodex-core = { path = \"../core\" }\ncodex-ollama = { path = \"../ollama\" }\nowo-colors = \"4.2.0\"\nserde_json = \"1\"\nshlex = \"1.3.0\"\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntracing = { version ","stderr":"","exit_code":0,"duration":{"secs":0,"nanos":105153333}}}} +{"ts":"2025-08-09T16:07:21.557Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_end","call_id":"call_7xYZeN0TdkGDryUy2S9zPVtI","stdout":"--- ansi-escape/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-ansi-escape\"\nversion = { workspace = true }\n\n[lib]\nname = \"codex_ansi_escape\"\npath = \"src/lib.rs\"\n\n[dependencies]\nansi-to-tui = \"7.0.0\"\nratatui = { version = \"0.29.0\", features = [\n \"unstable-rendered-line-info\",\n \"unstable-widget-ref\",\n] }\ntracing = { version = \"0.1.51\", features = [\"log\"] }\n\n--- apply-patch/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-apply-patch\"\nversion = { workspace = true }\n\n[lib]\nname = \"codex_apply_patch\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nsimilar = \"2.7.0\"\nthiserror = \"2.0.12\"\ntree-sitter = \"0.25.8\"\ntree-sitter-bash = \"0.25.0\"\n\n[dev-dependencies]\npretty_assertions = \"1.4.1\"\ntempfile = \"3.13.0\"\n\n--- arg0/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-arg0\"\nversion = { workspace = true }\n\n[lib]\nname = \"codex_arg0\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\ncodex-apply-patch = { path = \"../apply-patch\" }\ncodex-core = { path = \"../core\" }\ncodex-linux-sandbox = { path = \"../linux-sandbox\" }\ndotenvy = \"0.15.7\"\ntokio = { version = \"1\", features = [\"rt-multi-thread\"] }\n\n--- cli/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-cli\"\nversion = { workspace = true }\n\n[[bin]]\nname = \"codex\"\npath = \"src/main.rs\"\n\n[lib]\nname = \"codex_cli\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nclap = { version = \"4\", features = [\"derive\"] }\nclap_complete = \"4\"\ncodex-arg0 = { path = \"../arg0\" }\ncodex-chatgpt = { path = \"../chatgpt\" }\ncodex-common = { path = \"../common\", features = [\"cli\"] }\ncodex-core = { path = \"../core\" }\ncodex-exec = { path = \"../exec\" }\ncodex-login = { path = \"../login\" }\ncodex-mcp-server = { path = \"../mcp-server\" }\ncodex-tui = { path = \"../tui\" }\nserde_json = \"1\"\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntracing = \"0.1.51\"\ntracing-subscriber = \"0.3.19\"\n\n--- common/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-common\"\nversion = { workspace = true }\n\n[lints]\nworkspace = true\n\n[dependencies]\nclap = { version = \"4\", features = [\"derive\", \"wrap_help\"], optional = true }\ncodex-core = { path = \"../core\" }\nserde = { version = \"1\", optional = true }\ntoml = { version = \"0.9\", optional = true }\n\n[features]\n# Separate feature so that `clap` is not a mandatory dependency.\ncli = [\"clap\", \"serde\", \"toml\"]\nelapsed = []\nsandbox_summary = []\n\n--- core/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-core\"\nversion = { workspace = true }\n\n[lib]\nname = \"codex_core\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nasync-channel = \"2.3.1\"\nbase64 = \"0.22\"\nbytes = \"1.10.1\"\nchrono = { version = \"0.4\", features = [\"serde\"] }\ncodex-apply-patch = { path = \"../apply-patch\" }\ncodex-login = { path = \"../login\" }\ncodex-mcp-client = { path = \"../mcp-client\" }\ndirs = \"6\"\nenv-flags = \"0.1.1\"\neventsource-stream = \"0.2.3\"\nfs2 = \"0.4.3\"\nfutures = \"0.3\"\nlibc = \"0.2.174\"\nmcp-types = { path = \"../mcp-types\" }\nmime_guess = \"2.0\"\nrand = \"0.9\"\nreqwest = { version = \"0.12\", features = [\"json\", \"stream\"] }\nserde = { version = \"1\", features = [\"derive\"] }\nserde_json = \"1\"\nserde_bytes = \"0.11\"\nsha1 = \"0.10.6\"\nshlex = \"1.3.0\"\nsimilar = \"2.7.0\"\nstrum_macros = \"0.27.2\"\ntempfile = \"3\"\nthiserror = \"2.0.12\"\ntime = { version = \"0.3\", features = [\"formatting\", \"local-offset\", \"macros\"] }\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntokio-util = \"0.7.14\"\ntoml = \"0.9.4\"\ntoml_edit = \"0.23.3\"\ntracing = { version = \"0.1.51\", features = [\"log\"] }\ntree-sitter = \"0.25.8\"\ntree-sitter-bash = \"0.25.0\"\nuuid = { version = \"1\", features = [\"serde\", \"v4\"] }\nwhoami = \"1.6.0\"\nwildmatch = \"2.4.0\"\n\n\n[target.'cfg(target_os = \"linux\")'.dependencies]\nlandlock = \"0.4.1\"\nseccompiler = \"0.5.0\"\n\n# Build OpenSSL from source for musl builds.\n[target.x86_64-unknown-linux-musl.dependencies]\nopenssl-sys = { version = \"*\", features = [\"vendored\"] }\n\n# Build OpenSSL from source for musl builds.\n[target.aarch64-unknown-linux-musl.dependencies]\nopenssl-sys = { version = \"*\", features = [\"vendored\"] }\n\n[dev-dependencies]\nassert_cmd = \"2\"\ncore_test_support = { path = \"tests/common\" }\nmaplit = \"1.0.2\"\npredicates = \"3\"\npretty_assertions = \"1.4.1\"\ntempfile = \"3\"\ntokio-test = \"0.4\"\nwalkdir = \"2.5.0\"\nwiremock = \"0.6\"\n\n--- exec/Cargo.toml\n[package]\nedition = \"2024\"\nname = \"codex-exec\"\nversion = { workspace = true }\n\n[[bin]]\nname = \"codex-exec\"\npath = \"src/main.rs\"\n\n[lib]\nname = \"codex_exec\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nchrono = \"0.4.40\"\nclap = { version = \"4\", features = [\"derive\"] }\ncodex-arg0 = { path = \"../arg0\" }\ncodex-common = { path = \"../common\", features = [\n \"cli\",\n \"elapsed\",\n \"sandbox_summary\",\n] }\ncodex-core = { path = \"../core\" }\ncodex-ollama = { path = \"../ollama\" }\nowo-colors = \"4.2.0\"\nserde_json = \"1\"\nshlex = \"1.3.0\"\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntracing = { version ","stderr":"","exit_code":0,"duration":{"secs":0,"nanos":105153333}}}} {"ts":"2025-08-09T16:07:21.557Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"token_count","input_tokens":7946,"cached_input_tokens":7457,"output_tokens":155,"reasoning_output_tokens":64,"total_tokens":8101}}} {"ts":"2025-08-09T16:07:21.557Z","dir":"to_tui","kind":"insert_history","lines":6} {"ts":"2025-08-09T16:07:21.557Z","dir":"to_tui","kind":"app_event","variant":"RequestRedraw"} @@ -18179,7 +18179,7 @@ {"ts":"2025-08-09T16:07:29.588Z","dir":"to_tui","kind":"app_event","variant":"RequestRedraw"} {"ts":"2025-08-09T16:07:29.590Z","dir":"to_tui","kind":"app_event","variant":"Redraw"} {"ts":"2025-08-09T16:07:29.601Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_output_delta","call_id":"call_oXnHICDDZKHs2UzhT8ZEAASu","stream":"stdout","chunk":"W3BhY2thZ2VdCm5hbWUgPSAiY29kZXgtbWNwLWNsaWVudCIKdmVyc2lvbiA9IHsgd29ya3NwYWNlID0gdHJ1ZSB9CmVkaXRpb24gPSAiMjAyNCIKCltsaW50c10Kd29ya3NwYWNlID0gdHJ1ZQoKW2RlcGVuZGVuY2llc10KYW55aG93ID0gIjEiCm1jcC10eXBlcyA9IHsgcGF0aCA9ICIuLi9tY3AtdHlwZXMiIH0Kc2VyZGUgPSB7IHZlcnNpb24gPSAiMSIsIGZlYXR1cmVzID0gWyJkZXJpdmUiXSB9CnNlcmRlX2pzb24gPSAiMSIKdHJhY2luZyA9IHsgdmVyc2lvbiA9ICIwLjEuNDEiLCBmZWF0dXJlcyA9IFsibG9nIl0gfQp0cmFjaW5nLXN1YnNjcmliZXIgPSB7IHZlcnNpb24gPSAiMC4zIiwgZmVhdHVyZXMgPSBbImZtdCIsICJlbnYtZmlsdGVyIl0gfQp0b2tpbyA9IHsgdmVyc2lvbiA9ICIxIiwgZmVhdHVyZXMgPSBbCiAgICAiaW8tdXRpbCIsCiAgICAibWFjcm9zIiwKICAgICJwcm9jZXNzIiwKICAgICJydC1tdWx0aS10aHJlYWQiLAogICAgInN5bmMiLAogICAgInRpbWUiLApdIH0K"}}} -{"ts":"2025-08-09T16:07:29.602Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_end","call_id":"call_oXnHICDDZKHs2UzhT8ZEAASu","stdout":"[package]\nname = \"codex-mcp-client\"\nversion = { workspace = true }\nedition = \"2024\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nmcp-types = { path = \"../mcp-types\" }\nserde = { version = \"1\", features = [\"derive\"] }\nserde_json = \"1\"\ntracing = { version = \"0.1.41\", features = [\"log\"] }\ntracing-subscriber = { version = \"0.3\", features = [\"fmt\", \"env-filter\"] }\ntokio = { version = \"1\", features = [\n \"io-util\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"sync\",\n \"time\",\n] }\n","stderr":"","exit_code":0,"duration":{"secs":0,"nanos":37966333}}}} +{"ts":"2025-08-09T16:07:29.602Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_end","call_id":"call_oXnHICDDZKHs2UzhT8ZEAASu","stdout":"[package]\nname = \"codex-mcp-client\"\nversion = { workspace = true }\nedition = \"2024\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nmcp-types = { path = \"../mcp-types\" }\nserde = { version = \"1\", features = [\"derive\"] }\nserde_json = \"1\"\ntracing = { version = \"0.1.51\", features = [\"log\"] }\ntracing-subscriber = { version = \"0.3\", features = [\"fmt\", \"env-filter\"] }\ntokio = { version = \"1\", features = [\n \"io-util\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"sync\",\n \"time\",\n] }\n","stderr":"","exit_code":0,"duration":{"secs":0,"nanos":37966333}}}} {"ts":"2025-08-09T16:07:29.602Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"token_count","input_tokens":11468,"cached_input_tokens":11169,"output_tokens":38,"reasoning_output_tokens":0,"total_tokens":11506}}} {"ts":"2025-08-09T16:07:29.603Z","dir":"to_tui","kind":"insert_history","lines":6} {"ts":"2025-08-09T16:07:29.603Z","dir":"to_tui","kind":"app_event","variant":"RequestRedraw"} @@ -18222,7 +18222,7 @@ {"ts":"2025-08-09T16:07:31.162Z","dir":"to_tui","kind":"app_event","variant":"RequestRedraw"} {"ts":"2025-08-09T16:07:31.163Z","dir":"to_tui","kind":"app_event","variant":"Redraw"} {"ts":"2025-08-09T16:07:31.190Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_output_delta","call_id":"call_qycmgsk86yqOKGA1kXHdWvS4","stream":"stdout","chunk":"W3BhY2thZ2VdCmVkaXRpb24gPSAiMjAyNCIKbmFtZSA9ICJjb2RleC1tY3Atc2VydmVyIgp2ZXJzaW9uID0geyB3b3Jrc3BhY2UgPSB0cnVlIH0KCltbYmluXV0KbmFtZSA9ICJjb2RleC1tY3Atc2VydmVyIgpwYXRoID0gInNyYy9tYWluLnJzIgoKW2xpYl0KbmFtZSA9ICJjb2RleF9tY3Bfc2VydmVyIgpwYXRoID0gInNyYy9saWIucnMiCgpbbGludHNdCndvcmtzcGFjZSA9IHRydWUKCltkZXBlbmRlbmNpZXNdCmFueWhvdyA9ICIxIgpjb2RleC1hcmcwID0geyBwYXRoID0gIi4uL2FyZzAiIH0KY29kZXgtY29yZSA9IHsgcGF0aCA9ICIuLi9jb3JlIiB9Cm1jcC10eXBlcyA9IHsgcGF0aCA9ICIuLi9tY3AtdHlwZXMiIH0Kc2NoZW1hcnMgPSAiMC44LjIyIgpzZXJkZSA9IHsgdmVyc2lvbiA9ICIxIiwgZmVhdHVyZXMgPSBbImRlcml2ZSJdIH0Kc2VyZGVfanNvbiA9ICIxIgpzaGxleCA9ICIxLjMuMCIKc3RydW1fbWFjcm9zID0gIjAuMjcuMiIKdG9raW8gPSB7IHZlcnNpb24gPSAiMSIsIGZlYXR1cmVzID0gWwogICAgImlvLXN0ZCIsCiAgICAibWFjcm9zIiwKICAgICJwcm9jZXNzIiwKICAgICJydC1tdWx0aS10aHJlYWQiLAogICAgInNpZ25hbCIsCl0gfQp0b21sID0gIjAuOSIKdHJhY2luZyA9IHsgdmVyc2lvbiA9ICIwLjEuNDEiLCBmZWF0dXJlcyA9IFsibG9nIl0gfQp0cmFjaW5nLXN1YnNjcmliZXIgPSB7IHZlcnNpb24gPSAiMC4zIiwgZmVhdHVyZXMgPSBbImVudi1maWx0ZXIiLCAiZm10Il0gfQp1dWlkID0geyB2ZXJzaW9uID0gIjEiLCBmZWF0dXJlcyA9IFsic2VyZGUiLCAidjQiXSB9CgpbZGV2LWRlcGVuZGVuY2llc10KYXNzZXJ0X2NtZCA9ICIyIgptY3BfdGVzdF9zdXBwb3J0ID0geyBwYXRoID0gInRlc3RzL2NvbW1vbiIgfQpwcmV0dHlfYXNzZXJ0aW9ucyA9ICIxLjQuMSIKdGVtcGZpbGUgPSAiMyIKdG9raW8tdGVzdCA9ICIwLjQiCndpcmVtb2NrID0gIjAuNiIK"}}} -{"ts":"2025-08-09T16:07:31.191Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_end","call_id":"call_qycmgsk86yqOKGA1kXHdWvS4","stdout":"[package]\nedition = \"2024\"\nname = \"codex-mcp-server\"\nversion = { workspace = true }\n\n[[bin]]\nname = \"codex-mcp-server\"\npath = \"src/main.rs\"\n\n[lib]\nname = \"codex_mcp_server\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\ncodex-arg0 = { path = \"../arg0\" }\ncodex-core = { path = \"../core\" }\nmcp-types = { path = \"../mcp-types\" }\nschemars = \"0.8.22\"\nserde = { version = \"1\", features = [\"derive\"] }\nserde_json = \"1\"\nshlex = \"1.3.0\"\nstrum_macros = \"0.27.2\"\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntoml = \"0.9\"\ntracing = { version = \"0.1.41\", features = [\"log\"] }\ntracing-subscriber = { version = \"0.3\", features = [\"env-filter\", \"fmt\"] }\nuuid = { version = \"1\", features = [\"serde\", \"v4\"] }\n\n[dev-dependencies]\nassert_cmd = \"2\"\nmcp_test_support = { path = \"tests/common\" }\npretty_assertions = \"1.4.1\"\ntempfile = \"3\"\ntokio-test = \"0.4\"\nwiremock = \"0.6\"\n","stderr":"","exit_code":0,"duration":{"secs":0,"nanos":37856500}}}} +{"ts":"2025-08-09T16:07:31.191Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_end","call_id":"call_qycmgsk86yqOKGA1kXHdWvS4","stdout":"[package]\nedition = \"2024\"\nname = \"codex-mcp-server\"\nversion = { workspace = true }\n\n[[bin]]\nname = \"codex-mcp-server\"\npath = \"src/main.rs\"\n\n[lib]\nname = \"codex_mcp_server\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\ncodex-arg0 = { path = \"../arg0\" }\ncodex-core = { path = \"../core\" }\nmcp-types = { path = \"../mcp-types\" }\nschemars = \"0.8.22\"\nserde = { version = \"1\", features = [\"derive\"] }\nserde_json = \"1\"\nshlex = \"1.3.0\"\nstrum_macros = \"0.27.2\"\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntoml = \"0.9\"\ntracing = { version = \"0.1.51\", features = [\"log\"] }\ntracing-subscriber = { version = \"0.3\", features = [\"env-filter\", \"fmt\"] }\nuuid = { version = \"1\", features = [\"serde\", \"v4\"] }\n\n[dev-dependencies]\nassert_cmd = \"2\"\nmcp_test_support = { path = \"tests/common\" }\npretty_assertions = \"1.4.1\"\ntempfile = \"3\"\ntokio-test = \"0.4\"\nwiremock = \"0.6\"\n","stderr":"","exit_code":0,"duration":{"secs":0,"nanos":37856500}}}} {"ts":"2025-08-09T16:07:31.191Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"token_count","input_tokens":11716,"cached_input_tokens":11425,"output_tokens":38,"reasoning_output_tokens":0,"total_tokens":11754}}} {"ts":"2025-08-09T16:07:31.191Z","dir":"to_tui","kind":"insert_history","lines":6} {"ts":"2025-08-09T16:07:31.191Z","dir":"to_tui","kind":"app_event","variant":"RequestRedraw"} @@ -18622,7 +18622,7 @@ {"ts":"2025-08-09T16:07:50.564Z","dir":"to_tui","kind":"app_event","variant":"RequestRedraw"} {"ts":"2025-08-09T16:07:50.566Z","dir":"to_tui","kind":"app_event","variant":"Redraw"} {"ts":"2025-08-09T16:07:50.587Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_output_delta","call_id":"call_jSRPjVaCwt6qcG7B0PgK4ekB","stream":"stdout","chunk":"W3BhY2thZ2VdCmVkaXRpb24gPSAiMjAyNCIKbmFtZSA9ICJjb2RleC1vbGxhbWEiCnZlcnNpb24gPSB7IHdvcmtzcGFjZSA9IHRydWUgfQoKW2xpYl0KbmFtZSA9ICJjb2RleF9vbGxhbWEiCnBhdGggPSAic3JjL2xpYi5ycyIKCltsaW50c10Kd29ya3NwYWNlID0gdHJ1ZQoKW2RlcGVuZGVuY2llc10KYXN5bmMtc3RyZWFtID0gIjAuMyIKYnl0ZXMgPSAiMS4xMC4xIgpjb2RleC1jb3JlID0geyBwYXRoID0gIi4uL2NvcmUiIH0KZnV0dXJlcyA9ICIwLjMiCnJlcXdlc3QgPSB7IHZlcnNpb24gPSAiMC4xMiIsIGZlYXR1cmVzID0gWyJqc29uIiwgInN0cmVhbSJdIH0Kc2VyZGVfanNvbiA9ICIxIgp0b2tpbyA9IHsgdmVyc2lvbiA9ICIxIiwgZmVhdHVyZXMgPSBbCiAgICAiaW8tc3RkIiwKICAgICJtYWNyb3MiLAogICAgInByb2Nlc3MiLAogICAgInJ0LW11bHRpLXRocmVhZCIsCiAgICAic2lnbmFsIiwKXSB9CnRvbWwgPSAiMC45LjIiCnRyYWNpbmcgPSB7IHZlcnNpb24gPSAiMC4xLjQxIiwgZmVhdHVyZXMgPSBbImxvZyJdIH0Kd2lyZW1vY2sgPSAiMC42IgoKW2Rldi1kZXBlbmRlbmNpZXNdCnRlbXBmaWxlID0gIjMiCg=="}}} -{"ts":"2025-08-09T16:07:50.587Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_end","call_id":"call_jSRPjVaCwt6qcG7B0PgK4ekB","stdout":"[package]\nedition = \"2024\"\nname = \"codex-ollama\"\nversion = { workspace = true }\n\n[lib]\nname = \"codex_ollama\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nasync-stream = \"0.3\"\nbytes = \"1.10.1\"\ncodex-core = { path = \"../core\" }\nfutures = \"0.3\"\nreqwest = { version = \"0.12\", features = [\"json\", \"stream\"] }\nserde_json = \"1\"\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntoml = \"0.9.2\"\ntracing = { version = \"0.1.41\", features = [\"log\"] }\nwiremock = \"0.6\"\n\n[dev-dependencies]\ntempfile = \"3\"\n","stderr":"","exit_code":0,"duration":{"secs":0,"nanos":34747500}}}} +{"ts":"2025-08-09T16:07:50.587Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_end","call_id":"call_jSRPjVaCwt6qcG7B0PgK4ekB","stdout":"[package]\nedition = \"2024\"\nname = \"codex-ollama\"\nversion = { workspace = true }\n\n[lib]\nname = \"codex_ollama\"\npath = \"src/lib.rs\"\n\n[lints]\nworkspace = true\n\n[dependencies]\nasync-stream = \"0.3\"\nbytes = \"1.10.1\"\ncodex-core = { path = \"../core\" }\nfutures = \"0.3\"\nreqwest = { version = \"0.12\", features = [\"json\", \"stream\"] }\nserde_json = \"1\"\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntoml = \"0.9.2\"\ntracing = { version = \"0.1.51\", features = [\"log\"] }\nwiremock = \"0.6\"\n\n[dev-dependencies]\ntempfile = \"3\"\n","stderr":"","exit_code":0,"duration":{"secs":0,"nanos":34747500}}}} {"ts":"2025-08-09T16:07:50.588Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"token_count","input_tokens":12292,"cached_input_tokens":5537,"output_tokens":37,"reasoning_output_tokens":0,"total_tokens":12329}}} {"ts":"2025-08-09T16:07:50.588Z","dir":"to_tui","kind":"insert_history","lines":6} {"ts":"2025-08-09T16:07:50.588Z","dir":"to_tui","kind":"app_event","variant":"RequestRedraw"} @@ -18675,7 +18675,7 @@ {"ts":"2025-08-09T16:07:52.623Z","dir":"to_tui","kind":"app_event","variant":"RequestRedraw"} {"ts":"2025-08-09T16:07:52.625Z","dir":"to_tui","kind":"app_event","variant":"Redraw"} {"ts":"2025-08-09T16:07:52.648Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_output_delta","call_id":"call_7GWwlzL4BAYWch7a0WsXNhSb","stream":"stdout","chunk":"W3BhY2thZ2VdCmVkaXRpb24gPSAiMjAyNCIKbmFtZSA9ICJjb2RleC10dWkiCnZlcnNpb24gPSB7IHdvcmtzcGFjZSA9IHRydWUgfQoKW1tiaW5dXQpuYW1lID0gImNvZGV4LXR1aSIKcGF0aCA9ICJzcmMvbWFpbi5ycyIKCltsaWJdCm5hbWUgPSAiY29kZXhfdHVpIgpwYXRoID0gInNyYy9saWIucnMiCgpbZmVhdHVyZXNdCiMgRW5hYmxlIHZ0MTAwLWJhc2VkIHRlc3RzIChlbXVsYXRvcikgd2hlbiBydW5uaW5nIHdpdGggYC0tZmVhdHVyZXMgdnQxMDAtdGVzdHNgLgp2dDEwMC10ZXN0cyA9IFtdCiMgR2F0ZSB2ZXJib3NlIGRlYnVnIGxvZ2dpbmcgaW5zaWRlIHRoZSBUVUkgaW1wbGVtZW50YXRpb24uCm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9ICIwLjEiCnV1aWQgPSAiMSIKCgpbZGV2LWRlcGVuZGVuY2llc10KY2hyb25vID0geyB2ZXJzaW9uID0gIjAuNCIsIGZlYXR1cmVzID0gWyJzZXJkZSJdIH0KaW5zdGEgPSAiMS40My4xIgpwcmV0dHlfYXNzZXJ0aW9ucyA9ICIxIgpyYW5kID0gIjAuOCIKdnQxMDAgPSAiMC4xNi4yIgo="}}} -{"ts":"2025-08-09T16:07:52.649Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_end","call_id":"call_7GWwlzL4BAYWch7a0WsXNhSb","stdout":"[package]\nedition = \"2024\"\nname = \"codex-tui\"\nversion = { workspace = true }\n\n[[bin]]\nname = \"codex-tui\"\npath = \"src/main.rs\"\n\n[lib]\nname = \"codex_tui\"\npath = \"src/lib.rs\"\n\n[features]\n# Enable vt100-based tests (emulator) when running with `--features vt100-tests`.\nvt100-tests = []\n# Gate verbose debug logging inside the TUI implementation.\ndebug-logs = []\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nbase64 = \"0.22.1\"\nchrono = { version = \"0.4\", features = [\"serde\"] }\nclap = { version = \"4\", features = [\"derive\"] }\ncodex-ansi-escape = { path = \"../ansi-escape\" }\ncodex-arg0 = { path = \"../arg0\" }\ncodex-common = { path = \"../common\", features = [\n \"cli\",\n \"elapsed\",\n \"sandbox_summary\",\n] }\ncodex-core = { path = \"../core\" }\ncodex-file-search = { path = \"../file-search\" }\ncodex-login = { path = \"../login\" }\ncodex-ollama = { path = \"../ollama\" }\ncolor-eyre = \"0.6.3\"\ncrossterm = { version = \"0.28.1\", features = [\"bracketed-paste\"] }\ndiffy = \"0.4.2\"\nimage = { version = \"^0.25.6\", default-features = false, features = [\"jpeg\"] }\nlazy_static = \"1\"\nonce_cell = \"1\"\nmcp-types = { path = \"../mcp-types\" }\npath-clean = \"1.0.1\"\nratatui = { version = \"0.29.0\", features = [\n \"scrolling-regions\",\n \"unstable-rendered-line-info\",\n \"unstable-widget-ref\",\n] }\nratatui-image = \"8.0.0\"\nregex-lite = \"0.1\"\nreqwest = { version = \"0.12\", features = [\"json\"] }\nserde = { version = \"1\", features = [\"derive\"] }\nserde_json = { version = \"1\", features = [\"preserve_order\"] }\nshlex = \"1.3.0\"\nstrum = \"0.27.2\"\nstrum_macros = \"0.27.2\"\nsupports-color = \"3.0.2\"\ntextwrap = \"0.16.2\"\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntracing = { version = \"0.1.41\", features = [\"log\"] }\ntracing-appender = \"0.2.3\"\ntracing-subscriber = { version = \"0.3.19\", features = [\"env-filter\"] }\ntui-input = \"0.14.0\"\ntui-markdown = \"0.3.3\"\nunicode-segmentation = \"1.12.0\"\nunicode-width = \"0.1\"\nuuid = \"1\"\n\n\n[dev-dependencies]\nchrono = { version = \"0.4\", features = [\"serde\"] }\ninsta = \"1.43.1\"\npretty_assertions = \"1\"\nrand = \"0.8\"\nvt100 = \"0.16.2\"\n","stderr":"","exit_code":0,"duration":{"secs":0,"nanos":37289709}}}} +{"ts":"2025-08-09T16:07:52.649Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"exec_command_end","call_id":"call_7GWwlzL4BAYWch7a0WsXNhSb","stdout":"[package]\nedition = \"2024\"\nname = \"codex-tui\"\nversion = { workspace = true }\n\n[[bin]]\nname = \"codex-tui\"\npath = \"src/main.rs\"\n\n[lib]\nname = \"codex_tui\"\npath = \"src/lib.rs\"\n\n[features]\n# Enable vt100-based tests (emulator) when running with `--features vt100-tests`.\nvt100-tests = []\n# Gate verbose debug logging inside the TUI implementation.\ndebug-logs = []\n\n[lints]\nworkspace = true\n\n[dependencies]\nanyhow = \"1\"\nbase64 = \"0.22.1\"\nchrono = { version = \"0.4\", features = [\"serde\"] }\nclap = { version = \"4\", features = [\"derive\"] }\ncodex-ansi-escape = { path = \"../ansi-escape\" }\ncodex-arg0 = { path = \"../arg0\" }\ncodex-common = { path = \"../common\", features = [\n \"cli\",\n \"elapsed\",\n \"sandbox_summary\",\n] }\ncodex-core = { path = \"../core\" }\ncodex-file-search = { path = \"../file-search\" }\ncodex-login = { path = \"../login\" }\ncodex-ollama = { path = \"../ollama\" }\ncolor-eyre = \"0.6.3\"\ncrossterm = { version = \"0.28.1\", features = [\"bracketed-paste\"] }\ndiffy = \"0.4.2\"\nimage = { version = \"^0.25.6\", default-features = false, features = [\"jpeg\"] }\nlazy_static = \"1\"\nonce_cell = \"1\"\nmcp-types = { path = \"../mcp-types\" }\npath-clean = \"1.0.1\"\nratatui = { version = \"0.29.0\", features = [\n \"scrolling-regions\",\n \"unstable-rendered-line-info\",\n \"unstable-widget-ref\",\n] }\nratatui-image = \"8.0.0\"\nregex-lite = \"0.1\"\nreqwest = { version = \"0.12\", features = [\"json\"] }\nserde = { version = \"1\", features = [\"derive\"] }\nserde_json = { version = \"1\", features = [\"preserve_order\"] }\nshlex = \"1.3.0\"\nstrum = \"0.27.2\"\nstrum_macros = \"0.27.2\"\nsupports-color = \"3.0.2\"\ntextwrap = \"0.16.2\"\ntokio = { version = \"1\", features = [\n \"io-std\",\n \"macros\",\n \"process\",\n \"rt-multi-thread\",\n \"signal\",\n] }\ntracing = { version = \"0.1.51\", features = [\"log\"] }\ntracing-appender = \"0.2.3\"\ntracing-subscriber = { version = \"0.3.19\", features = [\"env-filter\"] }\ntui-input = \"0.14.0\"\ntui-markdown = \"0.3.3\"\nunicode-segmentation = \"1.12.0\"\nunicode-width = \"0.1\"\nuuid = \"1\"\n\n\n[dev-dependencies]\nchrono = { version = \"0.4\", features = [\"serde\"] }\ninsta = \"1.43.1\"\npretty_assertions = \"1\"\nrand = \"0.8\"\nvt100 = \"0.16.2\"\n","stderr":"","exit_code":0,"duration":{"secs":0,"nanos":37289709}}}} {"ts":"2025-08-09T16:07:52.649Z","dir":"to_tui","kind":"codex_event","payload":{"id":"1","msg":{"type":"token_count","input_tokens":12592,"cached_input_tokens":12193,"output_tokens":36,"reasoning_output_tokens":0,"total_tokens":12628}}} {"ts":"2025-08-09T16:07:52.649Z","dir":"to_tui","kind":"insert_history","lines":6} {"ts":"2025-08-09T16:07:52.649Z","dir":"to_tui","kind":"app_event","variant":"RequestRedraw"}