OpenAIβs recent update to help center documentation confirms that Plus, Pro, and Business plans share a single allowance across ChatGPT and Codex, with usage measured strictly in tokens. For developers iterating on code for hours, this means the mechanical act of re-sending conversation history is likely the primary driver of cost, not just the length of individual prompts. A new independent experiment by developer sunnydachs quantifies this overhead, revealing that long sessions grow exponentially in input volume unless actively managed.
The Mechanics of Token Bloat
The core issue lies in how most chat UIs function: they re-send the entire conversation context with every new message. In a 40-turn coding session, the final turn alone reads 6,350 tokens, but the cumulative input across all turns reaches 133,352 tokens. This is 21 times the cost of the last message alone. Because the model reads every previous question and answer again with each new prompt, the total token count grows faster than a simple linear sum, making long, unmanaged sessions disproportionately expensive.
Strategy Comparison: Full vs. Rolling vs. Split
The experiment tested three synthetic workloads against four history strategies. 'Full' history served as the baseline. 'Rolling' strategies compressed old turns into summaries, rebuilt either every time a message dropped out of the window or every six messages. The 'Split' strategy cut the session at fixed intervals, carrying only a handoff of goals and constraints. The results were stark: while 'Rolling' strategies reduced net token costs by 26% to 45% while retaining all key facts, the 'Split' strategy achieved the highest savings at 55.9% but failed the quality check, losing 4 out of 10 critical constraints like environment versions and dependency rules.
When Compression Backfires
History management isn't a universal win. For short interactions, such as a ten-turn Q&A, adding a rolling summary layer actually increased costs by 7.8% compared to full history. The overhead of generating and processing summaries outweighed the savings from reduced input tokens. This suggests that for quick queries, developers should leave history management to the default full-context model, reserving compression strategies for long-running coding sessions or complex drafting tasks where context bloat becomes a genuine financial liability.
Key Takeaways
- Long sessions are expensive because UIs re-send full history; the last turn in a 40-turn chat costs 21x less than the cumulative total.
- Rolling summaries reduce token costs by up to 45% without losing critical facts, but only if rebuild frequency is optimized.
- Splitting sessions saves the most tokens (56%) but risks losing essential context, such as specific coding constraints or goals.
- For short chats (under 10 turns), compression strategies increase costs due to summary generation overhead; stick to full history.
The Bottom Line
Token counts are tokenizer-specific, but the relative savings are stable across models like GPT-2 and Qwen2.5. For long coding sessions, rolling summaries offer the best balance of cost reduction and context retention, while splitting should be reserved for cases where a strict, explicit handoff of constraints is guaranteed.