Skip to content

fix(cli): continue partial directory indexes - #1431

Merged
Shashankss1205 merged 1 commit into
CodeGraphContext:mainfrom
lntutor:fix/single-file-index-1395
Jul 31, 2026
Merged

Shashankss1205 merged 1 commit into
CodeGraphContext:mainfrom
lntutor:fix/single-file-index-1395

Conversation

@lntutor

@lntutor lntutor commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • compare discovered and indexed file counts before skipping a directory index
  • continue indexing when an existing repository contains only a partial file set
  • add regression coverage for the single-file-then-directory sequence

Verification

  • PYTHONPATH=src uv run pytest tests/unit/cli/test_index_exit_codes.py -q (3 passed)
  • git diff --check
  • ruff check on cli_helpers.py is currently blocked by 15 unrelated, pre-existing violations outside this diff

Fixes #1395

Assisted-by: Codex

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the shashankss1205's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Shashankss1205 Shashankss1205 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the diff and verified locally: merged onto current main and ran the relevant test suite — all green.

@Shashankss1205
Shashankss1205 merged commit 7a6225a into CodeGraphContext:main Jul 31, 2026
1 check failed
@Shashankss1205

Copy link
Copy Markdown
Collaborator

Thanks @lntutor for this contribution — merged! 🎉

Really appreciate you taking the time to work on CodeGraphContext. We'd love to have you contribute back again — feel free to pick up another open issue or share ideas in the discussions. Happy hacking!

@github-project-automation github-project-automation Bot moved this from Backlog tasks to Done in CGC Progress Board Jul 31, 2026
@Shashankss1205 Shashankss1205 added gssoc:approved GSSoC validation: counts toward scoring level:intermediate GSSoC difficulty: 35 pts contributor / 20 mentor mentor:Shashankss1205 GSSoC mentor attribution: credits reviewing mentor quality:clean GSSoC quality: x1.2 contributor / +5 mentor type:bug GSSoC type bonus: bug labels Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC validation: counts toward scoring level:intermediate GSSoC difficulty: 35 pts contributor / 20 mentor mentor:Shashankss1205 GSSoC mentor attribution: credits reviewing mentor quality:clean GSSoC quality: x1.2 contributor / +5 mentor type:bug GSSoC type bonus: bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug(cli): Indexing a single file registers its parent directory as a fully-indexed repo, permanently masking the real directory

2 participants