Repository navigation
fix: Preserve parameter descriptions in Args-only docstrings - #5302
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
markstuart-oai
left a comment
There was a problem hiding this comment.
Reviewed the complete diff at fc85abc. The leading newline preserves parameter indentation when Griffe cleans the docstring again. The regression covers automatic and explicit Google style, wrapped descriptions, and the existing empty-description behavior. No actionable findings.
Hosted checks at this commit passed, including Python 3.10–3.14 tests, Windows tests, type checks, lint, and CodeQL. This was a source review; I did not run local workloads or a separate security scan.
Summary
This pull request fixes lost parameter descriptions when a Google docstring begins with
Args:and has no summary. Griffe cleans the already-cleaned text again, removing the parameter indentation and treating the section as the tool description. A leading newline preserves that indentation during parsing.The regression test covers automatic and explicit Google style, wrapped parameter descriptions, and the existing empty tool description convention.
Test plan
Issue number
Fixes #5298
Checks
.agents/skills/code-change-verification/scripts/run.sh