fix: dogfood friction — session lookup recovery, honest timestamps, one-line warnings - #34
Merged
Merged
Conversation
Default --content now parses candidate sessions and counts only conversation text (user prompts, assistant text+thinking), so ranking follows discussion instead of injected boilerplate. Role-labeled previews in table and --json; path added to session/content JSON results. --raw keeps the old grep-parity raw line scan. A cheap raw prefilter gates the parse, skipped when JSON escaping could hide the query. Makefile build refreshes a stale root ./ccx. See docs/devlog/2026-08-03-content-search-noise.org. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ne-line warnings Adopts findings 1-5, 7 of docs/devlog/2026-08-03-trace-session-dogfood.org: - make build stamps VERSION from git describe (releases still override) - sessions: slug-folded project lookup (260715_x finds 260715-x), parent-dir walk on zero hits with a note, closest-slug suggestions; projects gains a PATH column (table + --json) - search: phrase semantics documented, zero-result hints, LAST column shows the end time --after/--before actually filter on - trace: one git-root warning per run, not two - -p help lists gx where grok is actually wired (not log) Finding 9 (exit 1 on zero results) did not reproduce — search exits 0; help now states the contract. Findings 6, 8 (trace slicing, human- readable --turn) deferred to follow-up issues. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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
Adopts findings 1–5, 7 of
docs/devlog/2026-08-03-trace-session-dogfood.org(two independent dogfood runs tracing archived sessions; findings 2, 3, 5 reproduced verbatim on the second run).make buildstampsgit describe --tags --dirty --always(e.g.v0.13.0-1-g3e3a235-dirty) instead ofdev; releases still override.260715_ccx-session-watchfinds slug260715-ccx-session-watchwithout guessing the mapping;ccx projectsgains a PATH column (table +--json).--content).--after/--beforefilter on and sorting uses — so a filtered row can't display a date outside the window.-phelp listsgxfor sessions/search/insight. Deliberately notlog: no grok source is wired there (validLogProvider/logSources) — that's a real feature, left open.Finding 9 (search exits 1 on zero results) did not reproduce — exit is 0 at v0.13.0 and here; help now documents the contract. Findings 6, 8 (trace turn-range slicing; human-readable
--turn) deferred to follow-up issues.Tests
go test ./...green,go vetclean. New:TestSessionsFromParents*,TestWalkStartPath,TestSuggestClosestProjects*,TestProjectMatchesNameSlugNormalized,TestSlugifyProjectQuery. Live-verified: parent-walk note, slug-fold hit, suggestions, hints, single warning line, version stamp.Stacked on #33.
🤖 Generated with Claude Code