* Share assistant payload replay matching * fix(provider): recover assistant field when ordinal AI index is taken The mismatch-length fallback in `_match_ai_message` only tried the exact `fallback_ordinal` AI index. When serialization drops or reorders an assistant message, a unique signature match can consume a non-ordinal index, leaving a later ambiguous payload's ordinal already used — so its provider field (e.g. `reasoning_content`) was silently dropped. Scan forward from the ordinal for the next unused `AIMessage` (wrapping to earlier indices) to preserve the positional bias while still recovering the field. Forward scanning avoids a naive min-unused pick that could restore the wrong field after a leading message is dropped. Add a regression test for the dropped-leading-message case. * fix(provider): avoid earlier assistant fallback replay |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| assistant_payload_replay.py | ||
| claude_provider.py | ||
| credential_loader.py | ||
| factory.py | ||
| mindie_provider.py | ||
| openai_codex_provider.py | ||
| patched_deepseek.py | ||
| patched_mimo.py | ||
| patched_minimax.py | ||
| patched_openai.py | ||
| vllm_provider.py | ||