fix(pr-daemon): rate-limit hints; price the gpt-5.6 models #21
Reference in New Issue
Block a user
Delete Branch "week-review/2026-W35"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two carry-over items from the 2026-W35 review.
#18 pr-daemon hint debounce. Hints are now banked per PR and role until one actually goes out, so a busy pane or a cooldown delays a hint but never loses it — the old code advanced the snapshot on the same tick that diffed it, so a held reason could never be recomputed. After a hint the next waits
hintCooldownSeconds(default 300) and carries every reason accumulated meanwhile. A payload identical to the last one is dropped, and acihint to alandsession is dropped when that session's own worktree already holds the head commit.Evidence from the week: PR #369's land session took 20+ hints, #412 about 20, #411 twelve in five hours; one PR earlier in the month got five byte-identical
reason=commentslines with the sameupdated=stamp.#19 model pricing. Unpriced models counted as zero, so every codex row read as free. The
gpt-5.6-solrow reproduces a pi-reported total to the cent, which also confirms the 0.1 cache-read multiplier applies to OpenAI. GLM-4.7-Flash has no published per-token rate and stays out.With the rates in, codex
gpt-5.6-solturns out to cost about ten timesterraper worker session while pushing back four times as often. That is a routing question, not a code change; filed separately.