Files
magpie/docs
yetone b5582912af gateway: a conversation on a ChatGPT account stays on it for an hour unread, not five minutes (leelantao)
leelantao on X: two Plus accounts on in magpie lost 90%+ of their
allowance in a day. Affinity let a conversation leave its account after
cacheCold, five minutes, for every vendor. Under Smart the other account
then had more left and went first, so after any pause over five minutes
the next turn went to the other account. That account read none of the
conversation from cache and refused the reasoning the first had sealed.
Each time, the whole context was paid again uncached, on whichever
account was fuller.

Measured on a real ChatGPT account (Pro, gpt-5.6-terra, low effort,
sandbox HOME, Codex 4-turn task): a thread left 7, 12, 25, 45 and 60
minutes still read everything it had sent before from cache (17152 of
21514, 21248 of 21532, 21248 of 21550, 17152 of 17291, 20224 of 20953).
So the ChatGPT backend keeps it at least the hour measured. coldAfter
gives a ChatGPT account (Account.Agent "codex") chatGPTCold, an hour;
every other vendor keeps cacheCold. A group's rules read the same window
for keepsEffort (turnRule.cold, set from the answering candidate in
ruleAnswered), so they don't drop a ChatGPT conversation's effort after
five minutes and lose its cache that way either.

Also measured: the same task direct, through magpie's relay (Codex's
own sign-in) and through the pool path (codex/gpt-5.6-terra). Direct
and relay send 10 requests each, with 166.7k/166.2k input and
154.1k/148.0k cached. The pool path sends 11 requests: 223.1k input,
196.1k cached. Its requests are ~3.5k larger and its first one reads
nothing from cache. usage.jsonl matches the rollouts one for one. No
hidden retries, titles or warmups were sent.

Run, at 8bd300399 plus this change:
- go test -tags nogui ./internal/gateway -run
  'Affinity|Stick|Effort|Rule|ChatGPT|Cold|Cache|Lone|Rotat|Weight|Smart|Seal|Codex'
  -count=1: ok, 80s.
- GOOS=linux and GOOS=windows go vet ./internal/gateway: ok.
- gofmt -l: clean.
Broken by hand: with coldAfter returning cacheCold and keepsEffort reading
cacheCold, both new tests fail ("ChatGPT, 6 minutes on: why "cold"",
"a ChatGPT conversation 12 minutes on dropped its effort").

Not run: the whole gateway package (another session's gateway run held
the machine); I run it next and file anything red. Not tried: two real
ChatGPT accounts moving a conversation. The second saved account here is
lapsed, so the move's cost is reasoned from the code and the one-account
cache measurements.
2026-10-27 16:40:30 +08:00
..