You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9be2c8e
Browse filesBrowse the repository at this point in the historyBrowse files
fix(server): forget a deleted thread's provider binding
The provider runtime table keeps one row per thread that has ever run an
agent, and nothing pruned it. A deleted thread kept its binding for the life
of the install, so the table grew without bound and every full scan of it paid
for threads the user removed long ago.
The thread deletion reactor now removes the binding after it stops the
provider session. The order matters: stopping a session ends in a directory
upsert, so removing first would re-insert the row this cleanup exists to drop.
Removal reuses the repository's existing `deleteByThreadId`, which until now
had no production caller, and failures are logged like the reactor's other
cleanup steps rather than failing the deletion.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
0 commit comments