Shared vs. Per-Session Throttle
In one observed case, a single shared poll-throttle file made a prompt hook exit silently whenever any other session had touched it within 3 seconds, leaving a queued reply undelivered. Keeping the throttle per session, and never throttling the prompt poll, removed that coupling.
A quiet skip that looked like an erratic agent
In one observed bound-session case, a prompt hook sometimes failed to deliver a reply that was already queued for the operator. Nothing was printed and nothing was recorded, so it looked like intermittent agent behavior. The cause was a shared poll-throttle file: one rate-limit marker used by every session on the machine.
How the shared design failed
The prompt hook's 3-second poll throttle was checked before the hook decided whether it was the event allowed to take a dispatch. Every bound session's post-tool hook, subagents included, refreshed that same file after every tool call. So when an operator prompt arrived within 3 seconds of any such refresh, the hook exited silently. The reply stayed queued, and a one-shot fallback poll later recovered it.
What the evidence showed
- All 8 fallback turns, out of 21 replies, had another session's hook fire 0.01 to 2.68 seconds before the prompt.
- 11 of 13 hook-delivered turns had no such hook in that window. The 2 exceptions, at gaps of 1.92 and 0.63 seconds, were attributed to coarse timing: the check used transcript tool-result timestamps rather than the actual throttle writes.
- Row lag was ruled out: each prompt arrived 4 to 7 seconds after the reply row was created.
- Nothing was lost and no reply was taken by another session.
What changed with a per-session throttle
The repair had three parts. The prompt poll is never throttled, since it runs once per operator prompt and is the only path whose output reaches the agent's context. The throttle remains only for the post-tool peek, kept as one file per session id, so one session cannot mute another. And every prompt poll on a bound thread is logged by outcome, using identifiers and timings and no message text.
The fallback poll stayed in place. It now also records why it had to run, classifying a miss as, for example, the hook not polling at all.
Where it stood after landing
The repair landed on the main line. The first operator prompt afterward was handled by the repaired hook: the poll ran, found nothing waiting, and printed nothing, and the per-session throttle file appeared. The source stated that no real queued reply had yet gone through the repaired path at that point, so this page reports no delivery result for it.
Two caveats come from the source. The cause is not proven for every single miss, so future misses each get a logged class that can confirm or refute it. And there may be a small load increase: each session can now peek every 3 seconds, where the shared throttle capped that across all sessions combined.
What this does not claim
- This does not generalize the finding to other systems.
- This does not claim the shared throttle is the cause of every missed injection: the source says the cause is not proven for every single miss.
- This does not claim any performance, reliability rate or load figure beyond those stated here.
- This does not name private paths, session or thread identifiers, or commit hashes.
FAQ
- Why can one machine-wide throttle make a prompt hook skip delivering a queued reply?
- In the observed case the throttle was checked before the hook decided whether to poll. If an operator prompt arrived within 3 seconds of any bound session's post-tool refresh, the hook exited silently, so the reply stayed queued.
- What evidence supported the diagnosis?
- Across 21 replies, all 8 fallback turns had another session's hook fire 0.01 to 2.68 seconds before the prompt, while 11 of 13 hook-delivered turns had none in that window. Row lag was ruled out and no reply was taken by another session.
- What changed when the throttle was kept per session?
- The prompt poll became unthrottled, the throttle stayed only for the post-tool peek with one file per session id, and every prompt poll was logged by outcome without message text.
- Is the shared throttle the cause of every missed injection?
- No. The source calls the cause strongly supported but not proven for every single miss, and the new log is meant to classify future misses.