MCPcopy Create free account
hub / github.com/WJX20/claude-code / ensureCurrentSessionFile

Method ensureCurrentSessionFile

src/utils/sessionStorage.ts:1272–1278  ·  view source on GitHub ↗

* Loads the sessionFile variable. * Do not need to create session files until they are written to.

()

Source from the content-addressed store, hash-verified

1270 * Do not need to create session files until they are written to.
1271 */
1272 private ensureCurrentSessionFile(): string {
1273 if (this.sessionFile === null) {
1274 this.sessionFile = getTranscriptPath()
1275 }
1276
1277 return this.sessionFile
1278 }
1279
1280 /**
1281 * Returns the session file path if it exists, null otherwise.

Callers 1

Calls 1

getTranscriptPathFunction · 0.85

Tested by

no test coverage detected