Repository navigation
DEV-5902: Improve ctx discovery and search - #2
Merged
Merged
Conversation
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.
Simple Description
Improve ctx local-history discovery, search filtering, progress output, and Codex journal classification.
What Changed
--roleand--exact-phrase/--exactsearch controls.100%output.Why This Change
The ctx audit found coverage gaps and noisy output that made local history search harder to trust and operate. These changes make default indexing cover the expected fork/user locations and make search output more precise for human and automated review workflows.
Alternatives Considered
AI observations
Implemented and verified in a dedicated worktree on
codex/ctx-improvements. The branch was rebased onto currentorigin/main; one upstream test added after the original work required the same macOS temp-root canonicalization used for the other provider-root tests.Tests
cargo check -p ctx -p ctx-history-search -p ctx-history-capturecargo test -p ctx-history-searchcargo test -p ctx-history-capture codex_session_jsonl_skips_metadata_only_without_real_messagescargo test -p ctx-history-capture codex_session_jsonl_fast_skips_metadata_only_without_real_messagescargo test -p ctx-history-capture default_discovery_includes_archived_codex_and_claude_profile_rootscargo test -p ctx --test search_show_locate_sqlCloses DEV-5902