Skip to content

Commit 67feaaf

Browse files
committed
Merge pull request 'chore: decode url path for sqlite' (#432) from sqlite_path into development
Reviewed-on: https://git.biggo.com/Funmula/dive-mcp-host/pulls/432
2 parents 145a43f + a097b4e commit 67feaaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dive_mcp_host/host/helpers/checkpointer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from contextlib import AbstractAsyncContextManager
2+
from urllib.parse import unquote
23

34
from langgraph.checkpoint.postgres.aio import AsyncPostgresSaver
45
from langgraph.checkpoint.sqlite.aio import AsyncSqliteSaver
@@ -22,7 +23,7 @@ def get_checkpointer(
2223
"""
2324
if uri.startswith("sqlite"):
2425
path = uri.removeprefix("sqlite:///")
25-
return AsyncSqliteSaver.from_conn_string(path)
26+
return AsyncSqliteSaver.from_conn_string(unquote(path))
2627
if uri.startswith("postgres"):
2728
return AsyncPostgresSaver.from_conn_string(uri)
2829
raise ValueError(f"Unsupported database: {uri}")

0 commit comments

Comments
 (0)