feat(search): add --local fallback that greps the local checkpoint branch#1210
Open
timon0305 wants to merge 3 commits into
Open
feat(search): add --local fallback that greps the local checkpoint branch#1210timon0305 wants to merge 3 commits into
timon0305 wants to merge 3 commits into
Conversation
…anch Users can hit empty results from the remote search service even when checkpoints are fully captured locally (visible via `entire activity` and `entire checkpoint explain`) — for example when the index is lagging or when checkpoints push to a dedicated mirror repo whose name differs from the working copy's origin. `entire search --local` (also `entire checkpoint search --local`) walks entire/checkpoints/v1 and does case-insensitive substring matching over prompts, transcripts, file paths, and the checkpoint branch name. The flag bypasses auth and the remote service entirely, so it works offline and against any repo the user owns checkpoints in. Output reuses the existing JSON/static-table shapes so scripted consumers don't have to branch on the source. Refs entireio#1195, entireio#1171
A small Go script that initializes a temp repo and writes two committed checkpoints via the public store API. Useful for manual end-to-end verification of `entire checkpoint search --local` without having to run an agent session. Usage: go run ./scripts/seed-local-search-fixture <repo-dir> cd <repo-dir> entire checkpoint search --local "<query>" --json
4580f3f to
f9a9337
Compare
When `entire search` / `entire checkpoint search` returns 0 results and the local entire/checkpoints/v1 branch has content, print a one-line stderr hint pointing the user at `--local`. Closes the discoverability gap reported in entireio#1171 and entireio#1195: the reporters knew their checkpoints were captured (visible in activity / dispatch / explain) but had no signal that --local existed or would work for them. The hint fires only on JSON/static paths so the TUI isn't polluted, and is silent when results came back, no local checkpoints exist, or the response is nil. Refs entireio#1171, entireio#1195
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.
Summary
Adds
--localtoentire search/entire checkpoint search. Skips the remote service and does case-insensitive substring matching over the localentire/checkpoints/v1branch (prompts, transcripts, file paths, branch name).Refs #1195, #1171. The remote indexing bug isn't fixed here — but users with confirmed-captured checkpoints (visible in
activity/dispatch/explain) get an immediate working path while it's diagnosed.--branch,--json, piped/accessibility output.--repo *, author/date filters.Test plan
go build ./...,go vet,gofmtcleanmainandfeature), empty query, no-match (total: 0), case-insensitive match, top-levelentire search --localalias