Skip to content

Preserve slash-separated CLI flags in batch recovery hints - #5429

Merged
Widthdom merged 2 commits into
mainfrom
fix-issue5423
Sep 23, 2026
Merged

Widthdom merged 2 commits into
mainfrom
fix-issue5423

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

Batch child-error sanitization changed --limit/--max-json-bytes into --limit<path>, corrupting cursor recovery hints. Preserve complete slash-separated public CLI option lists using the flag catalog while retaining filesystem-path and secret-value redaction.

Add parser controls for punctuation, aliases, POSIX/Windows paths, unknown option-like names and path prefixes/suffixes, plus standalone/serial/parallel malformed-cursor hint parity.

Validation

  • dotnet build -p:UseSharedCompilation=false — passed, no warnings or errors.
  • Targeted batch, diagnostic sanitization/redaction and Return structured JSON for bounded find cursor validation errors #5412 regression tests — 194 passed on net8.0 and 194 on net9.0.
  • Issue reproduction with the repository-built CLI — batch and standalone hints both retain --limit/--max-json-bytes.
  • dotnet run --project tools/CodeIndex.Changelog -- check — passed (18 fragments).
  • git diff --check — passed.

Documentation

Updated both English and Japanese sections of USER_GUIDE.md and TESTING_GUIDE.md.
Changelog fragment: changelog.d/unreleased/5423.fixed.md.

Review

Codex adversarial review completed in two rounds. Fixed the first-round P2 finding about private filename suffixes after closing punctuation and added regression controls. Final result: No blocking/actionable issues found.

No out-of-scope follow-up issues were identified. Agent instruction files were not changed.

Fixes #5423

@Widthdom
Widthdom merged commit 43f8eee into main Sep 23, 2026
12 checks passed
@Widthdom
Widthdom deleted the fix-issue5423 branch September 23, 2026 01:29
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.

Preserve slash-separated CLI flags in batch recovery hints

1 participant