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

Method ensureCurrentSessionFile

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

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

Callers 1

Calls 1

getTranscriptPathFunction · 0.85

Tested by

no test coverage detected