(id: string)
| 36 | * the compat gate, so archiveSession/fetchSessionTitle need this re-tag. |
| 37 | */ |
| 38 | export 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. |
no outgoing calls
no test coverage detected