Repository navigation
fix(compaction): Search history before calling a detail unknown - #3595
Merged
Merged
Conversation
The compaction note said to search only for an exact detail that the summary lacks. The agent read a summary without the detail as proof that it was gone, and asked the person. The note now says the summary leaves out most details and to search before calling a detail unknown or asking for it. Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BYK
approved these changes
Nov 17, 2026
BYK
enabled auto-merge (squash)
November 17, 2026 16:27
BYK
added a commit
that referenced
this pull request
Nov 17, 2026
The note that follows a compaction summary in `packages/junior/src/chat/services/context-compaction.ts` is model-read text, but the integration and behavioral eval path filters don't list that file. #3595 changed the note, and its evals ran only after the `trigger-evals-*` labels were added. This PR adds the file to both filters. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A3077261f58a20b2c94e5ba91f4b0f3f3 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A3077261f58a20b2c94e5ba91f4b0f3f3) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A3077261f58a20b2c94e5ba91f4b0f3f3/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
24 tasks done
This branch was successfully deployed
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.
Follow-up to #3591.
The note after a compaction summary said to search history only for "an exact detail that the summary lacks". In the continuity meaning case, the agent took a summary without the detail as proof that the detail was gone. It asked the person instead of searching.
The note now says that the summary leaves out most details, and that the agent should search with
searchConversationEventsbefore it calls a detail unknown or asks for it. It still asks when the search finds nothing.This changes only the compaction note. The note is the only place for this rule:
searchConversationEventsis a deferred tool, so its description isn't in context until the agent looks it up.via @BYK.
--
View Session [Sentry]