Commit Graph

4 Commits

Author SHA1 Message Date
Mario Zechner 93824fe185 fix: normalize OpenAI token counting, add branch source tracking
pi-ai:
- Fixed usage.input to exclude cached tokens for OpenAI providers
- Previously input included cached tokens, causing double-counting
- Now input + output + cacheRead + cacheWrite correctly gives total context

coding-agent:
- Session header now includes branchedFrom field for branched sessions
- Updated compaction.md with refined implementation plan
- Updated session.md with branchedFrom documentation
2025-12-03 17:11:22 +01:00
Mario Zechner 31e7bee360 Add auto-compaction trigger flow and maxTokens calculation 2025-12-02 16:17:05 +01:00
Mario Zechner 4b0b4961f7 Add compaction examples and /branch interaction 2025-12-02 16:09:46 +01:00
Mario Zechner b5322084b4 Add compaction research and implementation plan 2025-12-02 16:00:52 +01:00