Categories AI and Tools

GPT-6.2 Drops Your Reasoning If You Edit History

OpenAI shipped GPT-6.2 Astra and Sol on November 17, 2026, and buried a behavior change in the migration guide that can quietly double your API bill. Starting with GPT-6.2, the Responses API deletes a model’s saved reasoning whenever you edit the conversation history that came before it. Nothing errors. No warning pops up. The model just re-derives the reasoning from scratch — spending more tokens, adding latency, and sometimes giving you a worse answer than the one it had already worked out.

If you build agents, chatbots, or any multi-turn app on the Responses API, this one rule changes how you should manage conversation history. This guide explains what the rule is, the four triggers that trip it, what it actually costs at GPT-6.2’s published prices, and the append-only pattern OpenAI recommends instead. Every fact here comes from OpenAI’s own docs — the “Keep the prefix unchanged” guide and the API deployment checklist — plus the Nov 17 changelog, checked on November 23, 2026.

What changed: reasoning is now bound to the exact history before it

To understand the trap, you need two definitions from OpenAI’s docs.

A reasoning item is an output item in the Responses API that carries the model’s reasoning state between turns. You don’t see it as readable text — it’s the working-out the model did, stored so the next request can pick up where the last one left off. When you pass the previous response’s items back in, the model doesn’t have to redo that thinking.

A prompt prefix is the beginning of the rendered request — tool definitions, instructions, and conversation items — that is identical to an earlier request. Prompt caching works on the same idea: the cache matches requests from the start, so a change early in the request cuts cache reuse from that point onward.

Starting with GPT-6.2 (and, per OpenAI, other newer frontier models), a reasoning item is bound to the exact conversation history in front of it. Change anything earlier — trim a tool result, rewrite a developer message, replace old turns with a summary — and the API drops the reasoning items that followed, as a safeguard. OpenAI’s guide puts it plainly: “When reasoning items are dropped, the model may have to redo some reasoning, which can increase token usage, cost, and latency. If the model can’t recover the lost reasoning, output quality may also drop.”

The important nuance: this is a GPT-6.2-and-later behavior. Older models didn’t enforce it the same way. So code that ran fine on GPT-6.1 or GPT-5 can start silently wasting tokens the moment you point it at GPT-6.2 Astra or Sol. The migration is not just a model ID swap — it’s a review of how you handle history.

The four triggers that delete your reasoning

OpenAI’s guide lists the common ways integrations change the prefix. Here they are, in the order you’re most likely to hit them.

1. Editing earlier input items

This is the big one. Any edit to an earlier turn counts: shortening a tool result to save context, fixing a typo in a developer message, rewriting a user message, or replacing a block of old turns with a summary you wrote yourself. The API compares the history before each reasoning item with the history it saw before; if it doesn’t match, the reasoning goes.

The summary case catches people by surprise because summarization feels like good hygiene. In a long agent session, the obvious move is to compress the first twenty turns into a paragraph and keep going. On GPT-6.2, that compression is a prefix edit. The reasoning that depended on the original turns gets dropped, and the model has to re-derive it — from a summary that, by definition, left detail out.

2. Changing the tools array or text.format

Your tool definitions are part of the prefix. If you add, remove, or reorder tools between turns — or change the structured-output schema in text.format — the reasoning that followed the old definition is dropped. This bites teams that add tools dynamically, for example enabling a refund tool only after a customer asks for one, or tightening the output schema mid-conversation.

3. Changing reasoning.effort between turns

The effort dial is a trap in both directions. A common cost-saving pattern is to run the first turn at high effort, then drop to low effort for cheap follow-ups. On GPT-6.2, changing the request-level reasoning.effort parameter is a prefix change, so the high-effort reasoning from turn one gets dropped — and when you later escalate back to high effort, the model has to re-derive the reasoning it already had. You tried to save money and paid for the same thinking twice.

4. Changing the end user or the model

OpenAI’s guide also lists end_user_mismatch: if the safety_identifier changes between requests, or is sent on only one of them, earlier reasoning is removed. The same applies when you switch to certain other models mid-conversation — a model downgrade, for example from Astra to Sol mid-session, can drop reasoning too. And a related behavior change: on pre-GPT-6.2 models, changing top-level instructions alters the prefix, so mixed-model code paths need care.

None of these triggers raises an error. That’s the whole problem. Your app keeps working, your answers keep coming back, and the only symptom is a bill that creeps up and the occasional answer that feels dumber than it should.

The timestamp trap: the most innocent trigger of all

The most common trigger is also the most innocent, and it lives in thousands of chat apps right now. It looks like this:

system: You are Acme's support assistant. Today is ${new Date().toISOString()}. The user is on the ${user.page} page.

Putting today’s date and the current page into the system prompt is the standard way to give a chatbot context. On GPT-6.2, it’s a prefix edit on every single turn. The date changes, the page changes, so the first developer message no longer matches the history the reasoning item was bound to — and the turn-one reasoning gets dropped. Every turn. Forever.

I ran into this pattern described in a hands-on write-up by the Cuelark team, who tested it with the Vercel AI SDK: on turn two, the system prompt had a new timestamp and page, so it no longer matched what came before the turn-one reasoning item, and the response reported the reasoning as removed. Their code ran against a local mock of the documented Responses stream, not a live API key — but the mechanism is straight from OpenAI’s docs, and the docs confirm the behavior.

The fix is simple once you see it: keep the system prompt static, and put per-turn context somewhere that doesn’t touch the prefix. On GPT-6.2, top-level instructions are now appended after input, so they are the right place for guidance that applies to the current request only. Put today’s date, the current page, and other per-turn facts there — or append them as a new message at the end of the input list. The prompt caching guide gives the same advice for cache hits: move timestamps and user-specific content to the end, not the beginning.

What it actually costs: the worked example

OpenAI publishes no figure for how many tokens a dropped reasoning item costs you, because it depends on the task. So don’t trust anyone who quotes a fixed percentage. What we can do is honest arithmetic on OpenAI’s published list prices, with the assumptions stated up front.

GPT-6.2 list prices, standard processing, per million tokens, for requests up to 272,000 input tokens (checked November 18, 2026):

Model Input Cached input Output
GPT-6.2 Astra $8.00 $0.40 $40.00
GPT-6.2 Sol $2.00 $0.10 $10.00

Cache writes cost $10.00 (Astra) and $2.50 (Sol) per million for 30-minute retention. Above 272,000 input tokens, input and cache prices double and output costs 1.5x — Astra becomes $16/$0.80/$60, Sol $4/$0.20/$15. Batch processing is half price; Fast is double; Ultrafast is triple through February 28, 2027.

Now the illustration. Say your support agent runs on Astra, and a typical turn involves about 2,000 reasoning tokens that the model would otherwise reuse. At $40 per million output tokens, re-deriving those 2,000 tokens costs about $0.08 per turn. That sounds like nothing — until you multiply it. At 1,000 agent conversations a day, with the reasoning dropped once per conversation, that’s roughly $80 a day, or about $2,400 a month, spent re-doing work the model had already finished. On Sol the same math is a quarter of that — about $0.02 per turn, $20 a day — which is one more reason Sol is the right default for high-volume agent work. If you are choosing between models rather than just tiers, our GPT-6.2 Astra vs Claude Fable 5.2 comparison breaks down where Astra wins and where it doesn’t. These are illustrations with stated assumptions, not measurements: your reasoning-token counts will differ, and the only way to know your number is to measure it, which brings us to the detection section below.

There’s a second cost that doesn’t show up on the invoice: cache. A prefix change also cuts prompt-cache reuse from the changed point onward, so you pay full input price ($8 per million on Astra) for tokens that would have cost $0.40 cached. On long agent sessions with big system prompts and tool definitions, the cache loss can dwarf the reasoning cost. And there’s a third cost — quality. OpenAI is explicit that if the model can’t recover the lost reasoning, output quality may drop. A support agent that forgets the plan it made three turns ago doesn’t just cost more; it gives worse answers.

The fix: treat input as an append-only log

OpenAI’s recommendation is one sentence: adopt an append-only integration pattern as far as possible. In practice, that means four changes.

Keep the request-level parameters stable

Don’t change reasoning.effort, tools, or text.format between turns of the same conversation. If you need a different effort level or schema mid-session, OpenAI’s answer is the configuration_update input item: append it to the input list with the new reasoning effort or the new schema, and keep the original request-level setting the same. The update applies to the next response and continues until another update overrides it. One caveat from the deployment checklist: configuration updates can’t be combined with automatic compaction or truncation, and /responses/compact rejects histories containing them. To compact a history that has configuration updates, include a compaction_trigger item and add a fresh update afterward.

For tools, the append-only equivalents are the additional_tools item to add tools mid-conversation, or tool_choice with allowed_tools to restrict which tools the model can call on a turn — both without touching the tools parameter itself.

Move reusable instructions into the first developer message

Put your stable system prompt in the first developer message in input. That message is part of the prefix, and as long as it never changes, it stays cacheable and keeps the reasoning bound to it intact. Use top-level instructions only for guidance specific to the current request — on GPT-6.2, instructions are appended after input, so they don’t disturb the prefix at all. If you’re migrating from an older model, this is the single most important change: the old pattern of stuffing everything into top-level instructions now breaks the exact-prefix match that caching depends on.

Use OpenAI’s own compaction, not your own summary

Long sessions still need trimming, and OpenAI provides two sanctioned ways that keep reasoning intact. The first is /responses/compact (or client.responses.compact() if you manage the full input array yourself): it returns a smaller context window, and the guide warns explicitly — do not edit the compacted output. It’s not a human summary; it’s the machine state that helps the model continue. The second is context_management, OpenAI’s managed compaction. With either one, later reasoning items are retained, because the compaction happens on OpenAI’s side with the reasoning state preserved.

If you must write your own summary, place it at the end of the current context, not in place of the old turns. Inserting a summary before recent turns changes the prefix and causes the reasoning from the original history to be removed. Appending it keeps the prefix intact.

Put per-turn context at the end

Timestamps, the current page, the user’s plan tier, the ticket ID — anything that changes turn to turn belongs at the end of the input list or in top-level instructions, never in the first developer message. This is the one-line fix for the timestamp trap above, and it’s the change most chat apps need first.

How to tell if it’s already happening to you

You don’t have to guess. OpenAI added observability for exactly this problem.

Check input_transformations on every response. The Responses API now returns an input_transformations field that lists reasoning items the server removed and the reason for each removal — prefix_mismatch when the history changed, end_user_mismatch when the safety identifier changed. Before deployment, OpenAI’s checklist says to run a multi-turn task, log each response’s input_transformations when the field is nonempty, and if you see prefix_mismatch, find and fix the edit.

Track it as a metric in production. The checklist’s production advice is to measure the percentage of GPT-6.2 responses with at least one prefix_mismatch. That percentage is your trap detector: if it climbs after a deploy, something in the new code is editing history. The Vercel AI SDK surfaced this in version 4.0.121, which started returning input_transformations in provider metadata — if you use the AI SDK, upgrade and log it.

Watch the usage dashboard too. OpenAI added a “Reasoning removals” view in usage, so you can see dropped reasoning across your account without instrumenting every call. Pair that with Prompt Cache Diagnostics, which shows whether your cache hit rate fell at the same time — a prefix edit usually hurts both.

Run the pre-deployment test. Before you route production traffic to GPT-6.2, run a realistic multi-turn agent task against it — one with tool calls, a mid-conversation effort change, and a long session that needs compaction — and read the input_transformations on every turn. If your integration is clean, the field stays empty. If it’s not, you’ll see exactly which turn broke the prefix, and you can fix the code instead of paying for the same reasoning twice.

The one-afternoon migration checklist

If you’re moving an existing agent to GPT-6.2, don’t just change the model ID and deploy. Work through this list — it takes an afternoon, and it catches every trigger above before your users pay for it.

  1. Grep for history edits. Search your codebase for anywhere you mutate the input array between turns: trimming tool results, rewriting messages, splicing in summaries, reordering items. Each one is a prefix edit. Either remove it or move the change to an append.
  2. Freeze the system prompt. Make the first developer message a constant. Move anything dynamic — date, time, page, user tier — into top-level instructions or append it as a new message at the end of the input list.
  3. Audit the effort dial. If your code changes reasoning.effort between turns, replace it with configuration_update items and keep the request-level setting fixed.
  4. Audit tool changes. If tools are added or removed mid-conversation, switch to additional_tools for additions and tool_choice with allowed_tools for restrictions.
  5. Replace home-grown summarization. Swap your summary step for /responses/compact or context_management, and never hand-edit the compacted output.
  6. Pin the safety identifier. Send the same safety_identifier on every request in a session — or on none of them. A mismatch drops reasoning just like a prefix edit.
  7. Run the multi-turn test. Before production, run a realistic session — tool calls, an effort change, a compaction — and read input_transformations on every turn. Empty means clean.
  8. Ship the metric, not just the model. Log the percentage of GPT-6.2 responses with a prefix_mismatch from day one, and alert on it. A regression after a deploy is a code bug, not a model quirk.

That list is the whole migration. The model change itself is one line; the history discipline is the actual work — and it’s work you only have to do once.

Who should worry most — and who can ignore this

Worry most if: you run multi-turn agents on the Responses API with tool calls; your app lets users edit earlier messages (the classic “edit and resubmit” chat feature); you trim tool results to manage context; you summarize history yourself; you change reasoning effort or tools between turns; or you put timestamps in the system prompt. That’s most production agent code written before November 2026, which is why this matters now and not in six months.

Worry less if: you use the Chat Completions API without reasoning persistence, you make single-turn calls, or your sessions are short enough that history never needs trimming. The ChatGPT app is unaffected — this is an API behavior, not a consumer one.

The middle case is the interesting one. Small teams building their first agent on GPT-6.2 Sol will never hit this, because they’re starting from the current docs and the append-only pattern is the default in the new guides. The teams that get bitten are the ones migrating a working GPT-6.1 or GPT-5 agent to GPT-6.2 for the price cut — Astra is 20% cheaper than GPT-6 Astra on input and output, and cached input fell 60%, from $1.00 to $0.40 — and discovering that the migration tax is paid in re-derived reasoning. The price cut is real. So is the trap. GPT-6.2 Astra’s early testers already ran into exactly this kind of surprise. The fix costs an afternoon of code review; the trap costs a little on every turn, forever.

One more thing worth saying plainly: this is a safeguard, not a bug. OpenAI drops the reasoning because a reasoning item that was derived from a different history can’t be trusted against the history you actually sent. The model re-deriving its work is the safe behavior. The waste comes from integrations that change history casually — and the fix is to stop changing it casually.

Frequently Asked Questions

Does GPT-6.2 delete reasoning on every edit, or only some edits?

It drops the reasoning items that follow a prefix change — meaning any edit to the history before that reasoning item. An edit to the most recent turn, after the last reasoning item, doesn’t affect earlier reasoning. But in a long session, an edit near the top invalidates everything after it. The API reports exactly what it removed in the input_transformations field, with prefix_mismatch as the reason.

Does this affect the Chat Completions API too?

The behavior is documented for the Responses API, where reasoning items are passed between turns. GPT-6.2 Astra and Sol work through both APIs, but tool calling only works through the Responses API, per the Nov 17 changelog — so most agent workloads are on Responses anyway. If you use Chat Completions without passing reasoning state, there’s nothing to drop.

I summarize old turns to save context. Is that now wrong on GPT-6.2?

Self-written summaries inserted in place of old turns are prefix edits, so yes — they drop the reasoning that followed the summarized turns. Use OpenAI’s /responses/compact or context_management instead; both preserve later reasoning. If you must summarize yourself, append the summary at the end of the context rather than replacing the old turns.

How do I change reasoning effort mid-conversation without dropping reasoning?

Don’t change the request-level reasoning.effort parameter. Instead, append a configuration_update input item with the new effort level, keeping the original request-level setting the same. The update applies to the next response and persists until overridden. Note that configuration updates can’t be combined with automatic compaction — include a compaction_trigger item and add a fresh update afterward if you need to compact.

Can I see dropped reasoning in my usage dashboard?

Yes. OpenAI added a “Reasoning removals” view in usage, alongside the per-response input_transformations field. In production, track the percentage of GPT-6.2 responses with at least one prefix_mismatch — a rising percentage after a deploy means new code is editing history.

Is GPT-6.2 Sol affected the same way as Astra?

Yes — the prefix rule applies to both models, and to other newer frontier models. The cost of a dropped reasoning item differs, though: at list prices, re-deriving reasoning costs $40 per million output tokens on Astra versus $10 on Sol, so the same mistake is roughly four times cheaper on Sol. That price gap is one more reason Sol is the sensible default for high-volume agent work.

Leave a Reply

Your email address will not be published. Required fields are marked *