# fix\(provider-cursor\): Cursor text generation no longer leaks SQLite file handles on every call \(\#19310\) · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/acb90279e2adad19a63586944543fe7346499467)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: acb90279e2adad19a63586944543fe7346499467

Requested commit: acb90279e2adad19a63586944543fe7346499467

Commit: acb90279e2adad19a63586944543fe7346499467

Tree: 01f0265c5924788eba8f3d4c5545336af540ba8d

Author: Theo Browne

Committer: GitHub

## Message

```
fix(provider-cursor): Cursor text generation no longer leaks SQLite file handles on every call (#19310)

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 <bompus@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
```

## Parents

- [4cd0076ec65d51974dbe3efdd03be6ed5bf91c80](https://git.cafe/pingdotgg/t3code/commit/4cd0076ec65d51974dbe3efdd03be6ed5bf91c80?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/acb90279e2adad19a63586944543fe7346499467?format=markdown)
