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]>
11 lines
392 B
TypeScript
11 lines
392 B
TypeScript
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());
|
|
}
|