copilot-sdk
copilot-sdk copied to clipboard
docs: document EnableSessionStore and one-shot session guidance
Summary
Document EnableSessionStore in SessionConfig README references and add a One-shot / Hosted Environments guidance section across all language SDK READMEs.
Motivation
Users running one-shot hosted sessions (one request per container) can hit transient SQLite database is locked errors because the default session configuration enables SQLite-backed persistence features they typically do not need. Issue #1814 investigation identified that EnableSessionStore was undocumented in READMEs and there was no guidance for ephemeral environments.
Fixes #1814
Changes
- Add
EnableSessionStore(or language equivalent) to SessionConfig property lists in dotnet, go, python, and nodejs READMEs - Mention
enable_session_storeinline in rust README - Add One-shot / Hosted Environments section to all six language READMEs with an example disabling both
EnableSessionStoreand infinite sessions - Document default behavior: enabled via runtime default in
CopilotClimode when unset; disabled by default inEmptymode
Tests
Documentation-only change. Verified API examples against source (Client.cs, mode_empty.go, _mode.py, etc.).
Notes
- No runtime code changes
- Addresses the documentation gaps identified by the Bug Handler investigation on #1814