Skip to content

Commit 7de1366

Browse files
committed
docs(session): restore deleteSession comment for current cleanup behavior
1 parent 45ad4f3 commit 7de1366

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/session.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,13 @@ ${skillMd}
16071607
return index.entries.find((entry) => entry.id === sessionId) ?? null;
16081608
}
16091609

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+
*/
16101617
deleteSession(sessionId: string): boolean {
16111618
const index = this.loadSessionsIndex();
16121619
const targetEntry = index.entries.find((entry) => entry.id === sessionId) ?? null;

0 commit comments

Comments
 (0)