Clear session links no carry-over made, at boot
Sessions from v0.2.8 and earlier were linked to the one before them by every rollover and New session, so production threads offered "Show the previous session" (and prompts read summaries) for sessions nothing was carried from. A link is kept only when the session opens with a message carried from that session. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import BunSQLite from "@moduletrace/bun-sqlite";
|
||||
import clearImplicitSessionLinksSql from "./clear-implicit-session-links-sql";
|
||||
|
||||
/**
|
||||
* Drops session links from v0.2.8 and earlier that no carry-over made,
|
||||
* safe to run on every start (`clearImplicitSessionLinksSql`).
|
||||
*/
|
||||
export default async function clearImplicitSessionLinks() {
|
||||
await BunSQLite.sql(clearImplicitSessionLinksSql());
|
||||
}
|
||||
Reference in New Issue
Block a user