You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Straddling tool call shows as pending in the oldest timeline slice's details #1201
⚠ Agent-generated: An AI agent found this while reviewing #1199. Please
verify details before you act on them.
Summary
After #1199, a tool call that straddles a timeline byte-page boundary shows as pending in the oldest slice's details, even after the turn finished.
Why it happens
The timeline applies whole-item closure: a straddling item is given to the
newest slice and dropped from the older ones. The details route has no such
ownership rule. It projects whatever its sequence range contains.
The oldest slice's range reaches the turn start, so it contains the item's item/started row but not its item/completed row. The details projection
therefore renders the item as still running.
Reproduction
Create a finished turn larger than 4 MiB. About 650 commands of 25,000
characters works.
Add one command that starts near the top of the turn and completes at the
end. An npm run watch shape does this. A delegated Agent tool call does
it too, because the parent starts before its children and completes after
them.
Open the thread and expand the newest slice. The item shows completed.
Expand the oldest slice. The same item shows pending.
Impact
Low. Nothing is lost and nothing errors. All commands remain reachable across
slices. The item appears exactly once in the timeline itself, completed. Only
the oldest slice's details view contradicts it, and only for a turn over the
byte limit.
Suggested fix
Give the details route the same whole-item ownership rule the timeline uses, so
a straddling item is projected only by the slice that owns it.
Origin
Found during the third adversarial review pass on #1199
(#1199). Reported as a residual, non-blocking
finding.
Activity
[issue sweep] Give timeline turn details the whole-item ownership rule (