What's Changed
- Add CLI session management to avoid passing full conversation history by @takeshy in #38
cli session management improvements 07:28:38 [9/1187]
background
previously, cli modes (claude code, codex cli) worked by concatenating all past messages into a single text prompt and passing it to the cli for every message. this caused several issues:
- latency increased as conversations grew longer
- token consumption grew exponentially with conversation length
- cli tools redundantly processed the same content repeatedly
what's new
this release leverages the session resumption feature supported by claude code and codex cli. after the first message, only the session id is passed instead of the full conversation history.
| cli | first message | subsequent messages |
|---|---|---|
| claude code | send full history → receive session id | resume with --resume <sessionid>
|
| codex cli | send full history → receive thread id | resume with codex exec resume <threadid>
|
| gemini cli | send full history | send full history (no session support) |
additional improvements
- provider tracking: automatically clears session when switching between claude code and codex cli (session ids are no
compatible across different clis) - persistence: session ids are saved in chat history markdown files and persist across obsidian restarts
Full Changelog: v1.3.6...v1.3.7