Skip to content

fix(cli): reject empty native data paths - #9441

Closed
ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/inspect-native-data-empty-path-20261108
Closed

ShuaixinHuang wants to merge 1 commit into
morluto:mainfrom
ShuaixinHuang:codex/inspect-native-data-empty-path-20261108

Conversation

@ShuaixinHuang

Copy link
Copy Markdown
Contributor

Summary

inspect-native-data-type accepted an empty positional path and resolved it to the process working directory before binary-target admission. Sibling local-file commands reject the same input as a path validation error. This change uses the shared nonempty local-path schema and adds the command to the empty-path acceptance matrix.

Validation

  • The reported baseline reproduction is inspect-native-data-type "" --json, which reaches directory admission instead of path validation.
  • git diff --check passed.
  • The source build was unavailable in the current worktree, so the CLI command could not be rerun locally without installing dependencies; no dependencies were installed.

Author readiness

Human owner: @ShuaixinHuang

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@ShuaixinHuang
ShuaixinHuang marked this pull request as ready for review November 8, 2026 17:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T17:34:24.895850Z f8c2a2d Draft marked ready
ℹ️ 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.

@greptile-apps

greptile-apps Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

inspect-native-data-type now uses the shared nonempty local-path schema. The existing acceptance test includes the command’s empty-path case.

  • Native data inspection rejects an empty path during CLI validation.

Reviews (2) · Last reviewed commit: "fix(cli): reject empty native data paths" · Reviewed by Greptile

Copy link
Copy Markdown
Contributor Author

@morluto This PR addresses: fix(cli): reject empty native data paths. I have reviewed the final diff and validation evidence and am submitting it for review.

Copy link
Copy Markdown
Contributor Author

Issue opened for tracking: #9459

@morluto

morluto commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Thank you for identifying this and for the proposed fix. We are consolidating the related path-contract changes and sibling regressions in #9465, which credits your report and proposal. I’m closing this PR as superseded so the review can happen in one place; the associated tracking issue is linked there.

@morluto morluto closed this Nov 8, 2026
@morluto morluto added area: cli CLI adapter and one-shot commands bug Something isn't working labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli CLI adapter and one-shot commands bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants