e024bf75ce
_sanitize_tool_pairs() in ContextCompressor compared raw tool_call_id strings without stripping whitespace, the same bugfa3ab2ffdjust fixed in agent_runtime_helpers.py / run_agent.py (_get_tool_call_id_static + sanitize_api_messages). ContextCompressor has its own near-identical reimplementation of the pair-repair logic that was left unpatched. When assistant-side and result-side IDs diverge only in surrounding whitespace, the compressor misclassifies valid results as orphaned and replaces them with [Result unavailable] stubs — silent data loss on every compression cycle that touches such pairs. Apply the same .strip() fix to all three sites: - _get_tool_call_id (extracts IDs from assistant tool_calls) - result_call_ids accumulation loop - orphaned_results filter predicate Closes the sibling gap offa3ab2ffd/ #42405.