Skip to content

fix(sqlite): close tape store at framework shutdown - #76

Merged
PsiACE merged 3 commits into
mainfrom
fix-sqlite-store-lifecycle
Oct 5, 2026
Merged

PsiACE merged 3 commits into
mainfrom
fix-sqlite-store-lifecycle

Conversation

@PsiACE

@PsiACE PsiACE commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

SQLite's worker kept Bub CLI processes alive after returning results.

Yield the cached tape store through the framework lifecycle and always await store.close() in finally. The store remains reusable in later lifecycles.

Validation: one subprocess regression checks two successful CLI calls, a real missing-anchor error, SQLite activation, and natural exit. Ablations fail without cleanup, finally, or cache reuse, and reject a coroutine-returning hook. Full suite: 688 passed, 3 skipped; SQLite tests on Python 3.12: 20 passed; Ruff and diff checks passed.

@PsiACE
PsiACE marked this pull request as ready for review October 5, 2026 13:11
@PsiACE
PsiACE merged commit 9588c7e into main Oct 5, 2026
1 check passed
@PsiACE
PsiACE deleted the fix-sqlite-store-lifecycle branch October 8, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant