You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7a849c5
Browse filesBrowse the repository at this point in the historyBrowse files
A ChatGPT plan's requests name their session by Codex's session headers
A plan's requests read almost nothing from OpenAI's prompt cache: sessions
0eb4973f, 8facf414 and 0d89bd79 (gpt-6.1-sol, plan credential) read 0.9%,
5.6% and 8.1% of their prompt tokens from it, while dc3eb569, the same model
at the same address with an API key, read 94%. nodwyn replay --window
rebuilt every request of 0d89bd79 to its recorded hash, each its
predecessor with messages appended, so the prefix was stable; only the
credential differed. The plan's hits were partial older prefixes in 128-token
multiples, the shape of replicas with their own caches.
opencode found the same miss with a plan's token at api.openai.com/v1
(anomalyco/opencode#53765, 3.44%) and now sends the headers Codex names its
session by, session-id, thread-id and x-client-request-id
(anomalyco/opencode#53767). A request whose credential was granted
chatgpt.tokens.use.direct now carries the session's cache key as those
headers too, unless cache_key is off; an API key's requests are unchanged.
TestPlanRequestsCarryCodexSessionHeaders fails on the unchanged code and
passes here; make validate passes with no warnings. Whether the plan's
server routes by these headers shows only in the next plan session's cache
rate (ADR 9, amended 2026-10-07).
This inventory includes 230 of 456 tracked Go files: every non-test Go file, 51,445 of 94,468 Go source lines (54.5\% by lines). It also includes all 35 tracked Scheme files (2,979 lines). Counts include comments and blank lines; Go test files are omitted, not silently shortened.
7
+
This inventory includes 230 of 456 tracked Go files: every non-test Go file, 51,467 of 94,552 Go source lines (54.4\% by lines). It also includes all 35 tracked Scheme files (2,979 lines). Counts include comments and blank lines; Go test files are omitted, not silently shortened.
8
8
9
9
Each file is printed in full from the checkout at build time, including build constraints, imports and comments. The navigation map in Part~\ref{part:source-map} supplies routes through these listings. Some Unicode symbols are rendered with equivalent typesetting glyphs; consult the source file for exact bytes.
0 commit comments