Repository navigation
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close: this PR targets a real heartbeat transcript-filter bug, but it is superseded by the open proof-positive candidate at #95798, which covers the same behavior plus the repository-supported Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this branch and keep review focused on #95798 as the canonical heartbeat-filter fix, then close the linked bug after one candidate lands. So I’m closing this here and keeping the remaining discussion on #95798. Review detailsBest possible solution: Close this branch and keep review focused on #95798 as the canonical heartbeat-filter fix, then close the linked bug after one candidate lands. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows an assistant content array with a reasoning/thinking block plus HEARTBEAT_OK text sets hasNonTextContent and makes isHeartbeatOkResponse return false before transcript pruning can remove the heartbeat span. Is this the best way to solve the issue? No. This PR is in the right classifier layer, but the best landing path is the proof-positive sibling that also covers Security review: Security review cleared: Cleared: the diff only changes deterministic heartbeat message classification and colocated tests, with no dependency, workflow, secret, or code-execution surface changes. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against d1b917120a47. |
Summary
Allow heartbeat transcript pruning to keep working when an otherwise short
HEARTBEAT_OKacknowledgement is wrapped with provider reasoning/thinking blocks.Changes
reasoningandthinkingblocks as ignorable metadata for heartbeat ACK detectionTesting
pnpm test -- --run src/auto-reply/heartbeat-filter.test.ts src/agents/embedded-agent-runner/run/attempt.spawn-workspace.context-injection.test.tsFixes #95796