Takeover of #18154. Per-call SqliteLocalAgentStore so Cursor text generation closes its SQLite handles, and the agent now closes before its store on sign-out. Fixes#18151.
Co-authored-by: Aaron Queen <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>