Skip to content

fix(cache-warming): Warm after a child agent's noReply or reportBlocked - #3218

Merged
BYK merged 1 commit into
mainfrom
fix/cache-warming-child-endings
Nov 11, 2026
Merged

BYK merged 1 commit into
mainfrom
fix/cache-warming-child-endings

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #3211 (Bugbot comment).

answerToolEnded got behavior.gated, and the recorder stored no ending for a gated Turn. Child-agent Turns are gated, and only gated Turns have reportBlocked. So the reportBlocked ending never applied, and a child agent's noReply started no idle period.

Now answerToolEnded(toolName) has no gate argument. The recorder skips only Automation runs, using the Prompt mode (automation) that it already gets in its SystemPromptKey. A child agent's noReply or reportBlocked starts an idle period like any other Turn.

The answer-tool case in cache-warming-segments.test.ts covers both endings: a child-agent Turn warms and records the gap, and an Automation run schedules nothing.

via @BYK.

--

View Session [Sentry]

answerToolEnded took the Turn's gated flag and skipped every gated Turn,
so child-agent Turns never started an idle period from an answer tool.
The recorder now skips only Automation runs, by the Prompt mode it
already has.

Co-Authored-By: BYK <[email protected]>
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 11, 2026 10:27pm UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 11, 2026
@BYK
BYK enabled auto-merge (squash) November 11, 2026 22:33
@github-actions

Copy link
Copy Markdown
Contributor

9 screenshot changes — 9 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Attachment Zoom · Mobile
Conversation Attachment Zoom · Mobile
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Event Log Virtual · Desktop
Conversation Event Log Virtual · Desktop
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Show 3 more changed screenshots
Conversation Share Details · Desktop
Conversation Share Details · Desktop
Changed
Memories · Mobile
Memories · Mobile
Changed
Settings Mcp · Desktop
Settings Mcp · Desktop
Changed

@BYK
BYK merged commit 29c5647 into main Nov 11, 2026
47 checks passed
@BYK
BYK deleted the fix/cache-warming-child-endings branch November 11, 2026 22:36

This branch was successfully deployed

1 active deployment
Preview – junior-docs — a62c8651 Deployed Nov 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant