Repository navigation
v0.8.80
- Claude Code 2.1.327 sends UserPromptSubmit again, with the running turn's own
prompt_id, for every prompt it delivers inside that turn: a message the person queued, and in Code Mode each script result. Each was taken as a new request: Gate A was asked again about text that is mostly not a request, a new generation replaced the turn's (so the handoff offer of #356 was made again), and a reservation not yet connected to a run was released. In the local trace of 2026-11-17 to 11-19, 111 of 309 Gate A requests (36%) were such repeats; one turn was asked 39 times. A prompt that arrives with the running turn'sprompt_idis now recorded assame_turn: nothing is asked, and the generation, its reservation and the turn's one handoff offer stay as they were. - For each tool call a Code Mode script makes, the host writes an assistant row with the model
<synthetic>and no usage. These rows are not model requests: the turn's request count (the handoff break-even) and the depth reading no longer count them. An Agent call inside one still marks the turn as delegating. - A Claude root model switch was priced over five requests, the most it can serve before its return (#274), not what it serves. In the Router records of 2026-11-17 to 11-19, 16 switches to a cold target served 1 to 5 requests (a quarter served 2 or fewer), and each of the 8 Opus to Haiku stretches cost more than its estimate: together about $0.09 more than staying at list prices, 4 saving and 4 losing. The hold is now judged over two requests (
STRETCH_FEWEST); the best case still counts five. Replaying the recorded inputs (not a rerun), 14 of the 16 would be held, 7 of the 8 Opus to Haiku ones, and the one that saved still moves. At a 150k Opus prefix a 1.5k-token output now holds Haiku and a 4k one moves it. A switch away from a baseline whose cache is already cold is still taken when it prices as a saving. Codex and subagent spawns price one request and are unchanged. - A switch whose effort is above the one the baseline itself would run this turn is held like one below it (
return_effort): after a return the baseline keeps the turn's effort. An allowed upgrade is not held. - The stored root record counted as loaded before it was read. When a resumed session's first step ran out of its budget during the read, the routed model could be saved as the session's native one. It now counts only after a read that succeeded and that no newer turn superseded; until then the turn stays native, the record is not overwritten, the next turn reads it again, and the step is logged
record_unread. - A turn with a step that already went out unrouted no longer switches model at a later step of the same turn.
- The host's response waited up to 1.5 s on the Router's observation of the request (p90 1,563 ms over 1,663 responses). A root response now waits at most 300 ms and a subagent step does not wait. Past 300 ms the root response's effort and cache lifetime stay unknown in memory until a later response is linked, so the next switch in that turn prices that cache as a range; the trace record still receives them after the hook returns.
- Doctor's
router_costsubtracted only the root's Jev calls; it now subtracts subagent-step, spawn and late ones too. - The classic Compact PreCompact hook did not exit until its Jev request settled. With a Jev that did not answer, the process outlived the hook's 10-second limit, the host dropped the guidance it had already printed, and every compaction waited that long. The request is now abandoned once the hook has its answer, and the process exits when its output is written.
- A failed call's entry in the restored context cut the input and the error together, so a long input left no error text; the input is cut first.
- A request typed with a pasted image was not read as a request, so an older request stood as the current task for Compact. Its text now counts; a message that is only an image still does not.
- A restore that Compact does not give leaves a record with its reason (
stale,transcript,over_share,function_path,shadow,state), and the dashboard shows it. Doctor's compact check fails on a missing PostCompact only for a compaction the host applied; a PreCompact whose summary the host discarded is listed, not failed. - Automatic setup turns Claude Code's Code Mode on (
CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1in the settingsenvit writes its launch values to) where neither the settings nor the shell set it. An owner's own value, on or off, is kept and is not reported as a conflict. Code Mode leaves Claude in Chrome and computer use unavailable in the session; set the value to0to keep them. - Measured: none (no token or cost measurement; the counts above are read from recorded decisions or replay them). Covered by unit tests and the host runtime tests; not yet observed on an installed session.
Archive SHA-256:
jev-gate-0.8.80.zip:1332ec27b8ff9fcf665a2c8f5f960305cb469dd89f75724206689010c0e22c8b
Codex archive SHA-256:
a03836e98065fd86a2f441e846ba2b4966d12a17971ad781079b02670a34cb18 dist-release/jev-gate-codex-0.8.80.zip