Skip to content

Add SessionFs sqlite support for runtime sqlite routing#1299

Draft
SteveSandersonMS wants to merge 6 commits into
mainfrom
stevesa/sessionfs-sqlite
Draft

Add SessionFs sqlite support for runtime sqlite routing#1299
SteveSandersonMS wants to merge 6 commits into
mainfrom
stevesa/sessionfs-sqlite

Conversation

@SteveSandersonMS
Copy link
Copy Markdown
Contributor

@SteveSandersonMS SteveSandersonMS commented May 14, 2026

Summary

SDK-side support for routing per-session SQLite operations through SessionFs. Requires runtime update that hasn't yet shipped.

Key changes

  • SessionFsProvider.sqlite() — new optional method accepting queryType (exec/query/run)
  • SessionFsSqliteQueryType — exported from all entry points
  • handleSqlite flag on SessionFsConfig — opts in to receiving sqlite calls
  • Regenerated types for all language SDKs (Node, Python, Go, C#, Rust)
  • E2E test — validates sqlite round-trip with in-memory SQLite and queryType dispatch

@SteveSandersonMS SteveSandersonMS force-pushed the stevesa/sessionfs-sqlite branch 4 times, most recently from 8c3645d to efdbbaf Compare May 14, 2026 21:19
Comment thread dotnet/src/SessionFsProvider.cs Fixed
@SteveSandersonMS SteveSandersonMS force-pushed the stevesa/sessionfs-sqlite branch from efdbbaf to e9160cf Compare May 14, 2026 21:22
Update SDK to support the new sqlite() method on SessionFs, allowing
SDK apps to intercept per-session SQLite operations.

Key changes:
- SessionFsProvider.sqlite() accepts queryType parameter
- SessionFsSqliteQueryType exported from all entry points
- handleSqlite flag on SessionFsConfig
- Regenerated types for all language SDKs (Node, Python, Go, C#, Rust)
- E2E test for sqlite round-trip with queryType dispatch

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@SteveSandersonMS SteveSandersonMS force-pushed the stevesa/sessionfs-sqlite branch from e9160cf to 28b6443 Compare May 14, 2026 21:23
SteveSandersonMS and others added 5 commits May 15, 2026 11:52
sqlite is now a required method on SessionFsProvider. The handleSqlite
opt-in flag is removed from SessionFsConfig and the setProvider call.
Regenerated types for all languages from updated runtime schema.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Update generated types, provider interface, and adapter for the
flattened sqlite API. Add SessionFsSqliteProvider interface for
structured sqlite operations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
});

// Ask the agent to use the task tool to spawn a subagent that uses SQL
const msg = await session.sendAndWait({
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