8000 fix(corpus index): honour the feedback opt-out in the indexing footer (#1903) by xerj-org · Pull Request #1907 · xerj-org/xerj · GitHub
[go: up one dir, main page]

Skip to content

fix(corpus index): honour the feedback opt-out in the indexing footer (#1903) - #1907

Merged
xerj-org merged 1 commit into
mainfrom
fix/corpus-index-feedback-optout
Oct 20, 2026
Merged

xerj-org merged 1 commit into
mainfrom
fix/corpus-index-feedback-optout

Conversation

@xerj-org
Copy link
Copy Markdown
Owner

Fixes #1903.

Bug: xerj corpus index printed the field-report footer even with XERJ_DISABLE_FEEDBACK=true or --disable-feedback. Every other surface honours that opt-out. The footer comes from xerj-autoindex's with_field_report, which added AUTO_SEND_LINE unconditionally.

Fix: with_field_report now goes through with_field_report_if(hint, xerj_common::feedback::enabled()). That is the same check --help and xerj feedback use: the flag anywhere on the command line, or the env var.

Tests

…J_DISABLE_FEEDBACK

`xerj corpus index` prints the autoindex completion footer, which appended
AUTO_SEND_LINE unconditionally. It now checks xerj_common::feedback::enabled()
like every other surface.

Fixes #1903
@cla-bot cla-bot Bot added the cla-signed label Oct 19, 2026
@xerj-org
Copy link
Copy Markdown
Owner Author

Xerj Merger made the fix: xerj corpus index no longer prints the field-report footer when feedback is switched off. The autoindex footer now checks the same opt-out every other surface uses (--disable-feedback anywhere on the command line, or XERJ_DISABLE_FEEDBACK=true), with a unit test covering both paths. Build + Test passed on 63cd2b7. Fixes #1903.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xerj corpus index prints the field-report invitation even with XERJ_DISABLE_FEEDBACK=true or --disable-feedback

1 participant

0