MCPcopy
hub / github.com/codeaashu/claude-code / toCompatSessionId

Function toCompatSessionId

src/bridge/sessionIdCompat.ts:38–42  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

36 * the compat gate, so archiveSession/fetchSessionTitle need this re-tag.
37 */
38export function toCompatSessionId(id: string): string {
39 if (!id.startsWith('cse_')) return id
40 if (_isCseShimEnabled && !_isCseShimEnabled()) return id
41 return 'session_' + id.slice('cse_'.length)
42}
43
44/**
45 * Re-tag a `session_*` session ID to `cse_*` for infrastructure-layer calls.

Callers 6

getSelfBridgeCompatIdFunction · 0.85
updateBridgeSessionTitleFunction · 0.85
archiveSessionFunction · 0.85
doReconnectFunction · 0.85
runBridgeLoopFunction · 0.85
getRemoteSessionUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected