dbgWriteSession records the active backend and context budget once at startup. Behaviour differs sharply by model (different model families fail in different ways) and by context window, so a shared log must name exactly what produced it. The system prompt itself isn't dumped: it's the embedded PROM
(version, profile, model, url string, ctxSize, sysTokens int, tools []string)