We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45ad4f3 commit 7de1366Copy full SHA for 7de1366
1 file changed
src/session.ts
@@ -1607,6 +1607,13 @@ ${skillMd}
1607
return index.entries.find((entry) => entry.id === sessionId) ?? null;
1608
}
1609
1610
+ /**
1611
+ * Delete a session by its ID.
1612
+ * Removes the session entry from the index and cleans up associated resources
1613
+ * such as message files, in-memory state caches, working directory state,
1614
+ * session controllers, and tracked process timeout controls.
1615
+ * Returns true if the session was found and deleted, false otherwise.
1616
+ */
1617
deleteSession(sessionId: string): boolean {
1618
const index = this.loadSessionsIndex();
1619
const targetEntry = index.entries.find((entry) => entry.id === sessionId) ?? null;
0 commit comments