Repository navigation
fix(mcp): one code-file count and real repo summaries in the workspace views - #4216
Merged
Merged
Conversation
…e views repo="all" counted graph file nodes, external packages included, while the single-repo overview counted health's code files, so the same repo showed different totals; both now state code_files from one population. Each repo's summary is the overview essay's first sentence instead of its heading. list_repos applies the workspace state sync in memory when it re-reads the config, so it reports each repo's state.json values without a CLI run.
swati510
approved these changes
Oct 19, 2026
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
repo="all", the count for a repo used to differ from the count in that repo's own overview. Each repo row now statescode_filesfrom the same population ascode_health.code_filesin the single-repo overview. That population is every code file health read, scored or not, after the health exclude rules.total_filesbecomestotal_code_files.repo="all"row now has the overview essay's first sentence (up to 140 characters) instead of its heading, which was "Project Summary" for every repo.list_reposstays current. Whenlist_reposre-reads the workspace config, it applies the workspace state sync in memory. It then reports each repo's ownstate.jsonvalues without waiting for a CLI command to rewrite the config.Why
The count for a repo used to include external package nodes, so one repo showed three different totals depending on where you looked: 6,622, 6,036 and 5,868 on a nine-package monorepo. The summary field never carried a sentence.
How
count_health_files, counts the health population without loading the rows._lead_sentenceskips headings, tables, lists, quotes and code fences before it takes the first sentence.Verification
repo="all"size (chars)repo="all"/ its overviewrepo="all"/ its overviewlist_reposstate sync.pytest tests/unit/server tests/unit/workspacepasses (7,601 tests).ruff check .is clean.