fix(plugins): resolve handoff issues found in live hosts

This commit is contained in:
kartik-mem0
2026-09-10 19:50:21 +05:30
parent 2e784b76d2
commit d33b6604a4
23 changed files with 53 additions and 17 deletions
@@ -153,7 +153,9 @@ def _codex(records: list[dict], warnings: list[str]) -> tuple[list[dict], dict]:
elif kind == "event_msg":
if payload.get("type") == "thread_rolled_back":
raise engine.HandoffError("Codex rollback requires a native active-context export.")
elif kind != "turn_context":
# Codex 0.153+ persists harness snapshots and accounting beside response_items.
# These records are not conversation history and must not become user context.
elif kind not in {"turn_context", "world_state", "token_usage_record"}:
raise engine.HandoffError(f"Unsupported Codex rollout record: {kind!r}.")
result = []
for item in items: