Skip to content

fix(compaction): Search history before calling a detail unknown - #3595

Merged
BYK merged 1 commit into
mainfrom
fix/search-history-before-asking
Nov 17, 2026
Merged

BYK merged 1 commit into
mainfrom
fix/search-history-before-asking

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

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 searchConversationEvents before 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: searchConversationEvents is a deferred tool, so its description isn't in context until the agent looks it up.

via @BYK.

--

View Session [Sentry]

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]>
@sentry-junior
sentry-junior Bot requested a review from BYK November 17, 2026 16:24
@vercel

vercel Bot commented Nov 17, 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 17, 2026 4:24pm UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 17, 2026
@BYK
BYK enabled auto-merge (squash) November 17, 2026 16:27
@BYK
BYK merged commit f4db3ae into main Nov 17, 2026
82 of 94 checks passed
@BYK
BYK deleted the fix/search-history-before-asking branch November 17, 2026 16:51
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]>

This branch was successfully deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant