Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Willem Jiang 2026-05-01 21:51:44 +08:00 committed by GitHub
parent 2cb66f4a7c
commit 792885115d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -581,13 +581,17 @@ class ChannelManager:
)
configurable = run_config.get("configurable")
if not isinstance(configurable, Mapping):
if isinstance(configurable, dict):
pass
elif isinstance(configurable, Mapping):
configurable = dict(configurable)
else:
configurable = {}
run_config["configurable"] = configurable
run_config["configurable"] = configurable
# Pin channel-triggered runs to the root graph namespace so follow-up
# turns continue from the same conversation checkpoint.
configurable.setdefault("checkpoint_ns", "")
configurable.setdefault("thread_id", thread_id)
configurable["checkpoint_ns"] = ""
configurable["thread_id"] = thread_id
run_context = _merge_dicts(
DEFAULT_RUN_CONTEXT,