]> git.giacomolli.uk - onechat/commit
Leave the turn state out of the usage records
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Fri, 6 Nov 2026 18:33:04 +0000 (15:33 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Fri, 6 Nov 2026 18:33:04 +0000 (15:33 -0300)
commit6f7eda727e519ae43d7d35195cbe412a2725abd7
tree58639c7e574af521e16d25c7c9981cdd88e23810
parent522d226230a2eae0a8a33ae0fbf32f96c6886b26
Leave the turn state out of the usage records

The ChatGPT backend sends x-codex-turn-state on each response: an opaque
state of the backend of about 1 KB, not quota. The usage records keep
every other x-codex-* header, so each line holds the plan and the
windows without the noise.

Issue: b14d537
responses.go
responses_test.go