You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow configuring the reviewable extension allow-list (e.g. Markdown docs) #1869
ocr delegate preview excludes any file whose extension isn't on the built-in list (internal/config/allowlist/allowed_ext.go), with exclude_reason: "unsupported_ext". There's no flag, rule-file field or env var to extend it. A --rule entry with "path": "**/*.md" is accepted, but the .md files are still excluded.
Why it matters: in some repos READMEs and docs/** are contracts (for example, which callers use an API, or limits). A PR that changes code and its README together gets the README skipped, so a README that contradicts the code goes unreviewed. In delegation mode the host model can review Markdown fine; it just never sees the file.
Ask: a way to add extensions or globs to the reviewable set. That could be an include list in the rule JSON (mirroring the existing exclude), or an --include flag on delegate preview/rule. Per-path rules could then give docs their own checklist.
We currently work around it downstream by picking unsupported_ext docs out of excluded_files and reviewing them separately.
I reproduced this on main (1d7cc44, darwin/arm64): the extension allowlist is configurable today through the top-level include field of .opencodereview/rule.json. The rules[].path entry in the report selects rule text, not file inclusion, which is why the .md file stayed excluded.
Baseline with no config (same shape as your repro):
lib.rs is still reviewable — include is additive, not a whitelist. The ordering is in internal/agent/selection.go (user_include returns before the extension gate), and internal/agent/preview_test.go already has an explicit include check overrides extension exclusion case using a fake .supportedext file.
So the gap is discoverability rather than capability: pages/src/content/docs/en/review-rules.md describes include as bypassing built-in default exclude patterns and does not say it also overrides unsupported_ext. I can open a docs PR that states this (with the Markdown example above) and calls out the rules[].path vs include distinction — unless you would rather expose it as a dedicated additional_extensions field.
Reproduced with AI assistance (DeepSeek Harness); the commands and outputs above were run on the SHA named.
Activity
Walternater commentedon Nov 12, 2026
I reproduced this on
main(1d7cc44, darwin/arm64): the extension allowlist is configurable today through the top-levelincludefield of.opencodereview/rule.json. Therules[].pathentry in the report selects rule text, not file inclusion, which is why the.mdfile stayed excluded.Baseline with no config (same shape as your repro):
With
<repo>/.opencodereview/rule.json:{ "include": ["**/*.md"] }and the same
--from <root> --to HEADrange:lib.rsis still reviewable —includeis additive, not a whitelist. The ordering is ininternal/agent/selection.go(user_includereturns before the extension gate), andinternal/agent/preview_test.goalready has an explicitinclude check overrides extension exclusioncase using a fake.supportedextfile.So the gap is discoverability rather than capability:
pages/src/content/docs/en/review-rules.mddescribesincludeas bypassing built-in default exclude patterns and does not say it also overridesunsupported_ext. I can open a docs PR that states this (with the Markdown example above) and calls out therules[].pathvsincludedistinction — unless you would rather expose it as a dedicatedadditional_extensionsfield.Reproduced with AI assistance (DeepSeek Harness); the commands and outputs above were run on the SHA named.