Skip to content

fix(cli): distinguish file inventory from review progress - #1960

Merged
mldangelo-oai merged 1 commit into
mainfrom
mdangelo/codex/headless-scan-progress
Oct 25, 2026
Merged

mldangelo-oai merged 1 commit into
mainfrom
mdangelo/codex/headless-scan-progress

Conversation

@mldangelo-oai

@mldangelo-oai mldangelo-oai commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Plain scan progress printed Files: 0/3 as soon as registration found three files. At that point the CLI knows the inventory, but has no file review count. The CLI now prints File inventory: 3.

Refs #70. The separate work on saved review progress remains open.

Changes

Use the same count formatter for phase messages, running updates, and component scans. Show a known empty inventory as zero. Once file reviews are reported, preserve Files: 1/3; when review items are known, preserve ratios such as Reviews: 0/2.

Testing

  • Ran real CLI and SDK registration on main (3c68266a) and on this commit against a synthetic three-file Git repository, a one-file committed diff, and an empty component. All six runs stopped immediately after registration, before a model call. Main printed Files: 0/3 or Files: 0/0; the fix printed File inventory: 3 or File inventory: 0.
  • All 408 tests in the CLI, component-scan, and dashboard suites passed on Linux with seed 12345. Package type checks, formatting, and git diff --check passed.
  • The full local SDK run stopped on policy fixtures created with group write permissions (umask 002). The first failing test reproduced unchanged on main and passed with umask 022; the full local run was restarted with that setting.

Risk and rollout

Only human-readable progress text changes. The SDK events, saved scan data, and machine-readable output are unchanged. A diff's initial inventory can include unchanged files, so the new text does not call it a changed-file count. No migration or rollout steps.

Public disclosure review

  • No customer, partner, prospect, or user identities, data, or identifying details are included.
  • No credentials, personal data, private source, scan findings, or nonpublic links or tickets are included.
  • I reviewed the branch name, title, description, commits, changes, comments, logs, screenshots, attachments, and links for public disclosure.

@github-actions github-actions Bot added the bug Something isn't working label Oct 25, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T05:00:38.756673Z 05c0bf6 PR opened
🔒 Security Review ✅ Completed 2026-10-25T05:01:11.525108Z 05c0bf6 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for clarifying the progress display. This owner-level merge-safety pass found no issues at 05c0bf6. The shared formatter consistently distinguishes inventory from completed files while preserving known review counts and structured output.

Validation: builds, types, formatting, and five built-CLI progress scenarios passed. The local UI run passed 354 tests; all 54 failures also reproduce on the unchanged base, where output-directory ownership checks prevent the affected fixtures from running. Exact-source hosted CI passed all 64 component tests, including all six updated presentation cases. The full SDK suite was not rerun.

@mldangelo-oai
mldangelo-oai merged commit 76a58ac into main Oct 25, 2026
88 checks passed
@mldangelo-oai
mldangelo-oai deleted the mdangelo/codex/headless-scan-progress branch October 25, 2026 06:31
@github-actions github-actions Bot mentioned this pull request Oct 25, 2026
3 tasks done
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.

2 participants