# Pending input at the compaction boundary

The repair rechecks pending input after asynchronous context preparation and compaction. If its sequence changed, tool selection and context-budget validation run again before that snapshot is committed. The existing transport path still enforces the serialized request-body byte limit.

The turn identity is captured once for the lifetime of the request wrapper, including model fallback. A changed active turn or an aborted provider attempt cannot consume its prepared snapshot. A retry yields to the event loop, then checks cancellation and turn identity again.

User input already supersedes an in-flight provider attempt through InputControl. This behavior existed before this repair: the first actual subsequent model request includes that input. The stale snapshot defect reproduced for background-task input, which does not supersede the provider. This change must not be described as a proven Telegram delivery or latency fix.

Input arriving after a stable commit remains pending for a later request; it is never flushed unchecked into the final fallback message rebuild. Context receipts mean storage in the conversation context. They do not prove that a model processed the input or that Telegram received a reply.

Terminal cancellation retains the existing discarded-receipt reconciliation path: unconsumed input is not acknowledged as consumed and remains available to the UI queue. Repeated background arrivals can require repeated validation; no response-time guarantee is made.

Validation uses functions extracted from the actual pinned package, including InputControl, executeLoopStep, FallbackLLM, pending-steer methods and UI receipt reconciliation. Sixteen main-core cases and fifteen worker-core cases pass without skips. Fifty-four existing core/input/media/goal/byte-limit checks also pass. The source-tree runtime differs from the published repair target; this helper is not evidence of source parity or a completed release.

No new recipient, telemetry, permission or persistent data store is introduced.
