Fix handling of session IDs when combining responses
expose backing fn for `code` macro