Skip to content

Honor token boundaries in named search counts - #5383

Merged
Widthdom merged 1 commit into
mainfrom
fix-issue5376
Sep 16, 2026
Merged

Widthdom merged 1 commit into
mainfrom
fix-issue5376

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

Named-query search counts and summaries now forward --token-boundary to the reader. Queries such as CoverageObserver exclude longer identifiers, matching ordinary counts and named result rows while preserving count units and origin coverage.

The shared regression fixture covers isolated/repeated tokens, longer identifiers, zero matches, path and origin filters, exact/substring controls, human output, and counts above the presentation limit.

Fixes #5376

Validation

  • Confirmed the new regression failed before the fix (expected 2, actual 6) and passes on net8.0 and net9.0.
  • dotnet test CodeIndex.sln -c Release -m:1 -p:UseSharedCompilation=false: net8.0 12,612 passed / 9 skipped; net9.0 12,118 passed / 435 skipped; zero failures.
  • Local Debug build and the issue's CLI reproduction: ordinary and named boundary counts both return 0.
  • dotnet format CodeIndex.sln --verify-no-changes --no-restore --include src/CodeIndex/Cli/QueryCommandRunner.SearchRecipes.cs tests/CodeIndex.Tests/QueryCommandRunnerSearchTests.cs passed.
  • Changelog fragment validation and git diff --check passed.
  • Codex adversarial review of origin/main..HEAD: No blocking/actionable issues found.

Documentation

  • Updated the English and Japanese sections of DEVELOPER_GUIDE.md and TESTING_GUIDE.md.
  • Added changelog.d/unreleased/5376.fixed.md; CHANGELOG.md is unchanged.
  • No agent instruction files changed. No follow-up issues identified.

@Widthdom
Widthdom merged commit cfcb723 into main Sep 16, 2026
11 checks passed
@Widthdom
Widthdom deleted the fix-issue5376 branch September 16, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Honor token-boundary mode in named-query search count summaries

1 participant