Repository navigation
Conversation
Paseo 0.14 always sends agent.turn_ended with timeline: [] (deprecated in the SDK; fetch via agents.ref(id).timeline.refetch). Herald read that as a wordless turn and dropped every completed turn, so almost nothing was announced after the 0.14 upgrade. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Paseo 0.14 always sends
agent.turn_endedwithtimeline: []. The daemon hard-codes it inplugins/lifecycle/index.js(publishAgentStream), and@getpaseo/pluginnow marks the field:Herald's
turn_endedhandler takes the reply fromevent.timeline. An empty timeline givesoutput === "", so every completed turn is treated as wordless and dropped. Only failed or canceled turns and permission requests still get through.On a 0.14 daemon running Herald 0.6.1, that came to 3 summaries for about 60 finished turns in an afternoon, and 0 for 52 over the night before.
Fix
turn_endedreads the tail of the agent's projected timeline:fetchRecentTimeline, 50 items, so the user's message is still in reach after a run of tool calls. Hosts that still send a timeline are used as they are and never fetched.awaitbeforerecord, so the handler checks the agent's generation again after it. A turn the agent moved on from during the fetch is dropped, the same way as the existing config and workspace-title awaits.fetchTimelineis injectable throughHookDeps. The testsetup()defaults it to[], so existing tests are unchanged.turn_endedcan repeat", and the CHANGELOG gets an[Unreleased]entry.Tests
fetchRecentTimeline's request shape and failure path.vitest run: 131 passed.tsc --noEmit: clean.🤖 Generated with Claude Code