Skip to content

docs(architecture): remove incorrect provider_directory entry from wh… - #1238

Merged
lizhengfeng101 merged 1 commit into
alibaba:mainfrom
Fayupable:docs/fix-provider-directory-why-excluded
Sep 14, 2026
Merged

lizhengfeng101 merged 1 commit into
alibaba:mainfrom
Fayupable:docs/fix-provider-directory-why-excluded

Conversation

@Fayupable

Copy link
Copy Markdown
Contributor

whyExcluded never returns provider_directory - the constant appears nowhere in internal/agent/selection.go, and is attached in internal/agent/preview.go, outside selectFiles entirely. The English page contradicted itself: the providerDirIgnoreDirs paragraph a few lines down already correctly said these files never reach the per-file filter.

  • en: remove the provider_directory line from the whyExcluded list
  • zh/ja/ko/ru: add the missing sentence to the providerDirIgnoreDirs paragraph (preview reports these as provider_directory, and an include rule cannot override the exclusion), matching each page's existing language convention
  • ko: also fix a wrong function name (filterDiffs -> isProviderDirExcluded) in the same paragraph

Fixes #1237

Description

Fixes a self-contradiction in the English architecture.md (provider_directory was listed as a whyExcluded return value, but the function never returns it - verified against internal/agent/selection.go and internal/agent/preview.go), and syncs the corrected explanation to the zh/ja/ko/ru copies, which were missing it since #1223. Also fixes an unrelated wrong function name in the ko page found while editing the same paragraph.

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Refactoring (no functional changes)
  • Documentation update
  • CI / Build / Tooling

How Has This Been Tested?

  • make test passes locally
  • Manual testing (describe below)

Ran make check (license-check, english-check, go vet) - passed, and confirmed git status shows no files touched outside the 5 architecture.md pages. Verified every technical claim in the issue directly against the source (grepped internal/agent/selection.go and internal/agent/preview.go, confirmed the exact line numbers cited for en/zh/ja/ko/ru, confirmed the ko page's filterDiffs reference doesn't exist anywhere in the codebase).

Checklist

  • My code follows the project's coding style (go fmt, go vet)
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or my feature works
  • New and existing unit tests pass locally with my changes
  • I have updated the documentation accordingly (if applicable)
  • I have signed the CLA
  • I disclosed the tool/model below and reviewed its output; I did not attribute commits to AI and will answer maintainer questions and review comments myself without AI/LLM.

AI/LLM disclosure: I used Gemini and Claude to help translate the zh/ja/ko/ru sentences. I also used Claude to verify against the source that this closes #1237 correctly and completely (checked for anything left unaddressed). The scope of the fix itself was already clear from the issue. I reviewed and understand every change before pushing.

Related Issues

Closes #1237

…yExcluded list

whyExcluded never returns provider_directory - the constant appears
nowhere in internal/agent/selection.go, and is attached in
internal/agent/preview.go, outside selectFiles entirely. The English
page contradicted itself: the providerDirIgnoreDirs paragraph a few
lines down already correctly said these files never reach the
per-file filter.

- en: remove the provider_directory line from the whyExcluded list
- zh/ja/ko/ru: add the missing sentence to the providerDirIgnoreDirs
  paragraph (preview reports these as provider_directory, and an
  include rule cannot override the exclusion), matching each page's
  existing language convention
- ko: also fix a wrong function name (filterDiffs -> isProviderDirExcluded)
  in the same paragraph

Fixes alibaba#1237
@CLAassistant

CLAassistant commented Sep 14, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

Copy link
Copy Markdown
Contributor

✅ OpenCodeReview: Review skipped: no items were selected.

@lizhengfeng101 lizhengfeng101 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@lizhengfeng101
lizhengfeng101 merged commit 2399251 into alibaba:main Sep 14, 2026
9 checks passed
Githab-capibara added a commit to Githab-capibara/open-code-review that referenced this pull request Sep 17, 2026
…yExcluded list (alibaba#1238)

whyExcluded never returns provider_directory - the constant appears
nowhere in internal/agent/selection.go, and is attached in
internal/agent/preview.go, outside selectFiles entirely. The English
page contradicted itself: the providerDirIgnoreDirs paragraph a few
lines down already correctly said these files never reach the
per-file filter.

- en: remove the provider_directory line from the whyExcluded list
- zh/ja/ko/ru: add the missing sentence to the providerDirIgnoreDirs
  paragraph (preview reports these as provider_directory, and an
  include rule cannot override the exclusion), matching each page's
  existing language convention
- ko: also fix a wrong function name (filterDiffs -> isProviderDirExcluded)
  in the same paragraph

Fixes alibaba#1237
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.

docs: provider_directory is documented as a whyExcluded reason, and is missing from four locales

3 participants