• Sources: primary, primary
  • Summary: Zed's change 67245 says that starting with GPT-6.2, OpenAI's Responses API appends top-level instructions after input, outside the cacheable prefix. Zed now sends its reusable system prompt as a leading developer message, as Codex does, including when replaying a native compaction window. In a local build with GPT-6.2 Sol, 98.4% of input tokens were cached on the final request, and the fix shipped in Zed 1.29.3 and 1.30.2-pre.
  • Why it matters: Any harness that passes its system prompt through the instructions field to GPT-6.2 or later loses prefix caching and pays full input price until it moves the prompt into the input.
  • Background: Prompt caching at OpenAI matches the longest identical prefix of a request against recent requests and bills cached tokens at a discount. Anything that varies early in the request, or a stable block placed after varying content, breaks the match. Agent harnesses rely on a stable system prompt and tool list at the start to keep long sessions cheap.