mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
Claude Code puts project instructions, memory and status notes in <system-reminder> blocks inside the user's own message, and Codex sends its AGENTS.md and environment as separate user messages. The gateway recorded both as if the user typed them, so Lens showed them in traces. The Lens trace spans and spend rows now carry the conversation as the user wrote it. Every complete harness block is removed from messages and tool results, and a user turn that held nothing else is dropped. Each known agent names its markers, and Codex envelopes are only removed for Codex. The reminder stripper moves out of the complexity router into litellm_core_utils/harness_context.py so both use one implementation, and it now lowers only ASCII when matching so a character like "İ" no longer shifts the cut. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| proxy | ||
| __init__.py | ||
| test_config.py | ||
| test_exporter.py | ||
| test_lens_trace_adapter.py | ||
| test_otlp_http.py | ||
| test_queries.py | ||
| test_receiver.py | ||
| test_remote.py | ||
| test_storage.py | ||