Skip to content

fix: #2863 lazy-load SQLiteSession exports#2864

Merged
seratch merged 1 commit intomainfrom
fix/lazy-load-sqlite-session
Apr 9, 2026
Merged

fix: #2863 lazy-load SQLiteSession exports#2864
seratch merged 1 commit intomainfrom
fix/lazy-load-sqlite-session

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Apr 9, 2026

This pull request fixes package import failures in runtimes where Python's optional sqlite3 module is unavailable.

It keeps SQLiteSession exported from both agents and agents.memory, but resolves it lazily so applications that only import core SDK symbols such as Agent and Runner no longer import the SQLite backend. It also adds import-side-effect regression coverage that blocks sqlite3/_sqlite3 in a subprocess, verifies core imports still work, and confirms explicit SQLiteSession imports still load the SQLite implementation.

This pull request resolves #2863.

@seratch seratch added this to the 0.13.x milestone Apr 9, 2026
@github-actions github-actions bot added bug Something isn't working feature:sessions labels Apr 9, 2026
@seratch seratch merged commit 690079e into main Apr 9, 2026
9 checks passed
@seratch seratch deleted the fix/lazy-load-sqlite-session branch April 9, 2026 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:sessions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't eagerly import sqlite3

1 participant