copilot-sdk icon indicating copy to clipboard operation
copilot-sdk copied to clipboard

docs: document EnableSessionStore and one-shot session guidance

Open syf2211 opened this issue 5 months ago • 0 comments

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_store inline in rust README
  • Add One-shot / Hosted Environments section to all six language READMEs with an example disabling both EnableSessionStore and infinite sessions
  • Document default behavior: enabled via runtime default in CopilotCli mode when unset; disabled by default in Empty mode

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

syf2211 avatar Jun 29 '26 10:06 syf2211