MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / ensureCurrentSessionFile

Method ensureCurrentSessionFile

src/utils/sessionStorage.ts:1298–1304  ·  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

1296 * Do not need to create session files until they are written to.
1297 */
1298 private ensureCurrentSessionFile(): string {
1299 if (this.sessionFile === null) {
1300 this.sessionFile = getTranscriptPath()
1301 }
1302
1303 return this.sessionFile
1304 }
1305
1306 /**
1307 * Returns the session file path if it exists, null otherwise.

Callers 1

Calls 1

getTranscriptPathFunction · 0.70

Tested by

no test coverage detected