Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 4 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ tiktoken-rs = "0.9.1"
parking_lot = "0.12"
tinyvec = { version = "1.8", features = ["alloc"] }
c2rust-bitfields = "0.18"
bincode = "2.0.1"
dirs = "6.0"
chrono-tz = "0.10"
rusqlite = { version = "0.38.0", features = ["bundled"] }
Expand All @@ -56,7 +55,7 @@ version = "4.5.53"
features = ["derive"]

[dependencies.reqwest]
version = "0.13.1"
version = "0.13.2"
default-features = false
features = ["rustls"]

Expand Down
12 changes: 5 additions & 7 deletions src/analyzers/codex_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,11 @@ pub(crate) fn parse_codex_cli_jsonl_file(
session_name: effective_name,
});
}
"assistant"
// Token usage is now emitted immediately when processing token_count
// events. We still track assistant messages without additional stats
// to avoid double-counting when Codex emits separate reasoning/tool
// outputs.
if !saw_token_usage =>
{
// Token usage is now emitted immediately when processing token_count
// events. We still track assistant messages without additional stats
// to avoid double-counting when Codex emits separate reasoning/tool
// outputs.
"assistant" if !saw_token_usage => {
let model_state = session_model.clone().unwrap_or_else(|| {
let fallback = SessionModel::inferred(
DEFAULT_FALLBACK_MODEL.to_string(),
Expand Down
2 changes: 1 addition & 1 deletion src/analyzers/copilot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ fn count_tokens(text: &str) -> u64 {
// Recursively extract all text content from a nested JSON structure
fn extract_text_from_value(value: &simd_json::OwnedValue, accumulated_text: &mut String) {
match value {
// Only accumulate if it's a "text" field value, not metadata like URIs
simd_json::OwnedValue::String(s)
// Only accumulate if it's a "text" field value, not metadata like URIs
if !s.starts_with("vscode-")
&& !s.starts_with("file://")
&& !s.starts_with("ssh-remote") =>
Expand Down
Loading
Loading