Conversation
Author
This was referenced Aug 19, 2026
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.
What does this PR do?
Fixes
session_searchrecall for conversations that have been split by context compression.Previously,
session_searchresolved everyparent_session_idchain to the root session and skipped the whole current lineage. That works for delegation child sessions, but it also filtered out older compressed session fragments. Those fragments may no longer be present in the live context, so the agent could fail to recall earlier turns from the same long-running conversation even though they were persisted and indexed.This change keeps delegation-style child sessions folded into their logical parent, while treating compression continuations as searchable session fragments.
Related Issue
No issue filed.
Type of Change
Changes Made
tools/session_search_tool.pyto detect compression continuation links using parentend_reason == "compression"plus the child/parent timestamps.tests/tools/test_session_search.pythat verifies a compressed parent fragment remains searchable from its continuation session.How to Test
scripts/run_tests.sh tests/tools/test_session_search.py.venv/bin/python scripts/check-windows-footguns.py tools/session_search_tool.py tests/tools/test_session_search.pyChecklist
Code
fix(scope):,feat(scope):, etc.)scripts/run_tests.sh tests/tools/test_session_search.pyDocumentation & Housekeeping
cli-config.yaml.exampleupdate N/ACONTRIBUTING.md/AGENTS.mdupdate N/AScreenshots / Logs