Skip to content

fix(cli): display scan paths with trailing separators - #185

Open
dipeshbabu wants to merge 2 commits into
openai:mainfrom
dipeshbabu:agent/display-trailing-scan-path
Open

fix(cli): display scan paths with trailing separators#185
dipeshbabu wants to merge 2 commits into
openai:mainfrom
dipeshbabu:agent/display-trailing-scan-path

Conversation

@dipeshbabu

Copy link
Copy Markdown
Contributor

Summary

  • preserve the final directory name when an absolute scan path ends in a separator
  • keep parent path components out of progress output
  • add focused CLI regression coverage

Root cause

The scan-scope formatter split absolute paths on / and selected the final segment. A trailing slash or backslash produced an empty final segment, so progress output omitted the scoped directory name.

Impact

Scans invoked with paths such as /workspace/service/ now report Running scan: service while retaining the existing parent-path redaction behavior.

Overlap check

Searched open issues and pull requests for trailing-separator scan paths, scan progress path display, and the affected helper name. The current open PRs are unrelated.

Validation

  • pnpm dlx bun test --timeout 30000 ./tests-ts/cli.test.ts (85 passed)
  • pnpm exec tsc --noEmit
  • pnpm exec prettier --check src/cli.ts tests-ts/cli.test.ts
  • git diff --cached --check

@dipeshbabu
dipeshbabu force-pushed the agent/display-trailing-scan-path branch from e2f1d48 to 31b5755 Compare August 1, 2026 14:21
@mldangelo-oai mldangelo-oai added the bug Something isn't working label Aug 3, 2026
@mldangelo-oai mldangelo-oai changed the title Show trailing-separator scan path names fix(cli): display scan paths with trailing separators Aug 3, 2026
@mldangelo-oai

Copy link
Copy Markdown
Collaborator

@codex review exact head be676ec

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: be676ec0a7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

Security review completed. No security issues were found in this pull request.

Reviewed commit: be676ec0a7

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants