Skip to content

fix(checkpoint): avoid silent None when msgpack type import fails#6972

Open
Miguel Miranda Dias (pandego) wants to merge 1 commit intolangchain-ai:mainfrom
pandego:fix/6970-msgpack-missing-module-fallback
Open

fix(checkpoint): avoid silent None when msgpack type import fails#6972
Miguel Miranda Dias (pandego) wants to merge 1 commit intolangchain-ai:mainfrom
pandego:fix/6970-msgpack-missing-module-fallback

Conversation

@pandego
Copy link

@pandego Miguel Miranda Dias (pandego) commented Feb 28, 2026

Summary

  • preserve serialized payload values when msgpack reconstruction fails due to missing importable classes
  • keep existing allowlist/blocking behavior unchanged
  • add a regression test for the missing-module restore path

Validation

  • in libs/checkpoint: uv run ruff format .
  • in libs/checkpoint: uv run ruff check --fix .
  • in libs/checkpoint: uv run ruff check .
  • in libs/checkpoint: uv run ruff format . --check
  • in libs/checkpoint: uv run ruff check --select I .
  • in libs/checkpoint: uv run mypy . --cache-dir .mypy_cache
  • in libs/checkpoint: uv run pytest

Fixes #6970

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant