Skip to content

refactor: sanitize configPath in error messages and make resolveAdaptiveConcurrency sync - #196

Merged
luojiyin1987 merged 1 commit into
masterfrom
refactor/sanitize-configpath-and-sync-concurrency
Sep 13, 2026
Merged

luojiyin1987 merged 1 commit into
masterfrom
refactor/sanitize-configpath-and-sync-concurrency

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

P1 (correctness): User-supplied configPath is now sanitized via sanitizeTerminalText() before embedding in terminal output.

P2 (API clarity): resolveAdaptiveConcurrency() was declared async but had no await, and took mdFilePaths: string[] but only used .length. Now sync, taking fileCount: number instead.

224 tests pass.

Closes #195

@luojiyin1987
luojiyin1987 force-pushed the refactor/sanitize-configpath-and-sync-concurrency branch from 322618a to 53e38b3 Compare September 13, 2026 09:01
P1: User-supplied configPath is now sanitized via sanitizeTerminalText()
before embedding in terminal output. Linux filenames allow newlines
and control characters, so unsanitized paths are a terminal-output
correctness issue.

P2: resolveAdaptiveConcurrency() was declared async but had no await,
and took mdFilePaths: string[] but only used .length. Now sync,
taking fileCount: number instead.
@luojiyin1987
luojiyin1987 force-pushed the refactor/sanitize-configpath-and-sync-concurrency branch from 53e38b3 to 5ff6eda Compare September 13, 2026 09:10
@luojiyin1987
luojiyin1987 merged commit 3cf9f11 into master Sep 13, 2026
6 checks passed
@luojiyin1987
luojiyin1987 deleted the refactor/sanitize-configpath-and-sync-concurrency branch September 13, 2026 09:55
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.

refactor: sanitize configPath in error messages and make resolveAdaptiveConcurrency sync

1 participant