This is awesome! You solve an immediate need of mine for:
https://github.com/gitsense/chat/tree/readme-scale-knowledge
Since I only support Pi natively, your solution will make it possible for codex/claude/etc. users to discover their conversations in my app. Will definitely include this as workaround for making codex, claude and other sessions available for discovery.
we publish a npm package of our core library too: https://github.com/skillsynchq/txcript
you can use that internally for this